Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Attempt localization and fail
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo27 committed Feb 5, 2017
1 parent 6bb8cc5 commit c4a0122
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 0 deletions.
Binary file added core/assets/images/ui/language.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 98 additions & 0 deletions core/assets/localization/default_fr.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
versionAvailable=Une nouvelle version est disponible! ([GREEN]{0}[]) - actuellement [ORANGE]{1}[]

# Inspections
inspections.notOnbeat.name=Pas de rythme
inspections.notOnbeat.info=Cela devrait être dans le rythme (aligné avec le marqueur).
inspections.notOffbeat.name=Pas décevant
inspections.notOffbeat.info=Cela devrait être décevant (à mi-chemin aligné avec les marqueurs).
inspections.missing.name=Cue manquante
inspections.missing.info={0} doit avoir un {1} au rythme {2}.
inspections.missingBefore.name=Cue manquante avant
inspections.missingBefore.info={0} doit avoir un {1} avant.
inspections.missingAfter.name=Cue manquante après
inspections.missingAfter.info={0} doit avoir un {1} après

editor.currentGame=Jeu en cours :
editor.lookingAt=[GRAY]{0}[]
editor.delete=Faites glisser et déposez ici pour supprimer
editor.scrollPatterns=Faites défiler la page vers le bas
editor.beatTrackerBeat=rythme {0}
editor.beatTrackerSec={0} s
editor.beatTrackerBpm={0} BPM
editor.musicStartTracker=musique\nrythme {0}
editor.playbackStartTracker=lecture\nrythme {0}
editor.bpmTracker=-> {0} BPM
editor.bpmToolStatus=Instructions de changement de tempo - \
Clic gauche pour ajouter, clic droit pour supprimer, roulette de défilement pour changer BPM (maintenir le contrôle pour +/- 5)
editor.splitPatternToolStatus=Instructions de l'outil de fendage de motif - \
Cliquez sur un motif pour le diviser en parties distinctes (vous ne pouvez pas annuler cette action)
editor.stretchStatus1=Longueur courante :
editor.stretchStatus2=Longueur originale :
editor.inspectionStatus={0} avertissement(s) trouvé(s)\n{1} ms écoulé
editor.button.paletteSwap=Permuter les palettes
editor.button.music=La musique
editor.button.metronome.on=Métronome: Vrai
editor.button.metronome.off=Métronome: Faux
editor.button.snap=Alignement : {0}
editor.button.tapalong=Recherche de rythme
editor.button.inspections=Inspections
editor.button.inspections.on=Inspections : Vrai
editor.button.inspections.off=Inspections : Faux
editor.button.helpTips.on=Conseils d'aide : Vrai
editor.button.helpTips.off=Conseils d'aide : Faux
tapalong.firstBeat=Premier rythme
tapalong.resetTime=Press [CYAN]SPACE[] to tap along, press [RED]R[] or wait {0} seconds to reset.\n\
The maximum amount of inputs stored is {1}.\n\
Press [RED]ESCAPE[] to exit back to the editor.
tapalong.realBpm=Average BPM\n{0}\nInput count\n{1}
info.credits=\
[LIGHT_GRAY]La programmation[]\n\
chrislo27\
\n\n[LIGHT_GRAY]La base de données[]\n\
ahemtoday, Huebird of Happiness\
\n\n[LIGHT_GRAY]Les effets sonores[]\n\
F Yeah, Rhythm Heaven! Tumblr\nahemtoday\nmegaminerzero, Chocolate2890, Whistler_420, TieSoul, Huebird of Happiness\
\n\n[LIGHT_GRAY]Les icônes[]\n\
ahemtoday, Whistler_420, Sir Killble, TheNewOrchestra\
\n\n[LIGHT_GRAY]Diverses améliorations[]\n\
Pengu12345
info.back=Press [RED]ESCAPE[] to go back to the editor.
info.stats=\
Games implemented: {0}\n\
Patterns: {1}\n\
Sound cues: {2}
info.rhcrdj=Have you tried [LIGHT_GRAY]megaminerzero[]'s Rhythm Heaven Custom Remix DJ? It's a sort-of soundboard \
with a lot more games than this editor. [CYAN]Click here[] to go to the reddit post.
musicScreen.title=Music Select
musicScreen.return=[CYAN]Scroll[] to change the volume (hold CONTROL for +/- 5).\n\
Press [CYAN]X[] to remove the song.\nPress [RED]ESCAPE[] to return to the editor.
musicScreen.current=Current music:
musicScreen.noMusic=no music
musicScreen.volume=Volume: {0}%
warning.remixOverwrite=[RED]Warning:[] this action will lose all unsaved changes.
newScreen.title=New Remix
newScreen.confirm=Press [CYAN]ENTER[] to start a new remix, losing all unsaved changes.
newScreen.return=Press [RED]ESCAPE[] to return to the editor without losing changes.
saveScreen.title=Save Remix
saveScreen.return=Press [RED]ESCAPE[] to return to the editor.
saveScreen.current=Current location:
saveScreen.noSave=no save location
saveScreen.overwrite=[RED]Warning:[] this will overwrite the file chosen without warning
loadScreen.title=Load Remix
loadScreen.return=Press [RED]ESCAPE[] to return to the editor and cancel this operation.
loadScreen.confirm=Press [CYAN]ENTER[] to confirm loading this remix, losing all unsaved changes.
loadScreen.versionMismatch=[ORANGE]Caution:[] the version this remix was saved in ([GRAY]{0}[]) [PINK]differs[] \
from the current one, which is [LIGHT_GRAY]{1}[]. \
The editor may [RED]crash[] when attempting to load the file, or some parts may be [RED]missing[].
loadScreen.missingContent=[RED]Warning:[] the remix you are trying to load has content the editor doesn't have.\n{0}
loadScreen.remixInfo=[LIGHT_GRAY]Remix Info[]\n\
Cue count: {0}\n\
Tempo changes: {1}
4 changes: 4 additions & 0 deletions core/src/chrislo27/rhre/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import ionium.registry.ScreenRegistry
import ionium.util.DebugSetting
import ionium.util.Logger
import ionium.util.i18n.Localization
import ionium.util.i18n.NamedLocale
import java.util.*

class Main(l: Logger) : ionium.templates.Main(l) {

Expand Down Expand Up @@ -73,6 +75,8 @@ class Main(l: Logger) : ionium.templates.Main(l) {
preferences = Gdx.app.getPreferences("RHRE2")
helpTipsEnabled = preferences.getBoolean("helpTipsEnabled", helpTipsEnabled)
inspectionsEnabled = preferences.getBoolean("inspectionsEnabled", inspectionsEnabled)

Localization.instance().addBundle(NamedLocale("Français", Locale("fr")))
}

override fun prepareStates() {
Expand Down
2 changes: 2 additions & 0 deletions core/src/chrislo27/rhre/init/DefAssetLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public void addManagedAssets(AssetManager manager) {
}

manager.load(AssetMap.add("ptr_whole", "images/ptr/full.png"), Texture.class);

manager.load(AssetMap.add("ui_language", "images/ui/language.png"), Texture.class);
}

@Override
Expand Down

0 comments on commit c4a0122

Please sign in to comment.