google-code-export / team-eso

Automatically exported from code.google.com/p/team-eso
1 stars 1 forks source link

Translation/Multi-language support #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, first of all i want to thank you for the great job you made with the 
EpicZone plugin, i love it.

I wish you can add a new option making admin be able to change the "denied 
acces" messages and translate those one into an other language.
I'm French (you may have notice i was a foreigner by my quite bad English :s ) 
and i would like to translate parts of your plugin (i can also make you a 
Spanish version if you want), i'll be glad if you can tell me a way that i'll 
be able to edit the strings, sentences displayed in the game so i'll try to 
translate them.

I'm sorry if i get missunderstood by expressing myself badly.
Have a good day =D

Original issue reported on code.google.com by antoine3...@gmail.com on 22 Apr 2011 at 8:21

GoogleCodeExporter commented 9 years ago
Don't apologize for your English, you are far better than many who speak 
English natively.

This is a wonderful idea, and I'll start working on a framework so that this 
can happen.

Original comment by jbla...@gmail.com on 22 Apr 2011 at 2:49

GoogleCodeExporter commented 9 years ago
Thanks a lot =D
You're really doing a great job with this plugin.
I'll be waiting for some news ;) take your time.

Original comment by antoine3...@gmail.com on 22 Apr 2011 at 2:58

GoogleCodeExporter commented 9 years ago
Ok, i've started the process and here is the initial language file for english. 
If you want to get started on translating it, you are more than welcome to.

Anything that starts with # is a comment, the 5 digit number is the key to that 
string, and is important to stay the same. All the other language is free to be 
changed.

Numbers in parenthesis are for variables that will come from code
ampersands followed by a Number or letter indicate coloring with the following 
key:

0 BLACK
1 DARK_BLUE
2 DARK_GREEN
3 DARK_AQUA
4 DARK_RED
5 DARK_PURPLE
6 GOLD
7 GRAY
8 DARK_GRAY
9 BLUE
A GREEN
B AQUA
C RED
D LIGHT_PURPLE
E YELLOW
F WHITE

#Formatting Strings
00000: ###,###,###
00001: &6(0): &A(1)
00002: &B(0): &AON
00003: &B(0): &COFF
00004: &6(0)
00005: &A(0) &6[(1)]

#Static Strings
00010: &B[] &6Required Parameter &B<> &6Optional Parameter &B... &6 Indicates 
repeatable. &B| &6 Indicates either/or
00011: &6You are currently in Edit mode.
00012: &6You are currently in Draw mode.
00013: &6You are currently in Draw Confirm mode.
00014: &6You are currently in Delete Confirm mode.
00015: EpicZones Reloaded.
00016: Zone modification cancelled, no changes were saved.
00017: Draw Mode canceled, back in Edit Mode. type /zone for more options.
00018: Zone children updated.
00019: Start drawing your zone with the zone edit tool. Type /zone save when 
you are done drawing.
00020: Zone Created. &Start drawing your zone with the zone edit tool. Type 
/zone save when you are done drawing.
00021: WARNING! Entering draw mode will erase all points for the zone! Type 
/zone draw confirm or /zone draw deny.
00022: Global zones cannot be edited.
00023: No zones to list.
00024: You don't own any zones.
00025: You did not specify if you wanted to edit the 'enter' or 'exit' text.
00026: Zone Owners Updated.
00027: Zone Parents Updated.
00028: You must specify a single center point, before setting the radius.
00029: Drawing Complete.
00030: You must draw at least 3 points or 1 point and set a radius, before you 
can move on.
00031: Zone Saved.
00032: You do not have permission to destroy in this zone.;
00033: You do not have permission to destroy outside the border of the map.;
00034: You do not have permission to build in this zone.;
00035: You do not have permission to build outside the border of the map.;
00036: You do not have permission to do that in this zone.
00037: You do not have permission to use this command.

#Variable Strings
00100: Zone Updated. Set (0) to [(1)]
00101: (0) is not a numerical value.
00102: Zone [(0)] has been deleted.
00103: A zone already exists with the tag [(0)]
00104: To continue deleting the zone [(0)] type /zone confirm.
00105: You are now editing zone [(0)]
00106: You do not have permission to edit the zone [(0)].
00107: Zone Updated. Set flag [(0)] to [(1)].
00108: [(0)] is not a valid flag.@@Valid flags are: pvp, mobs, regen, fire, 
explode, sanctuary
00109: Permission Added: [(0)] > [(1)] : [(2)]
00110: [(0)] is not a valid permission type.
00111: [(0)] is not a valid permission node.
00112: Point X: (0) Y: (1) added to zone [(2)].
00113: (0) players online [Page (1) of (2)]
00114: (0) players online in (1) [Page (2) of (3)]
00115: (0) - (1) - Distance: (2)
00116: (0) - Distance: (1)
00117: No zone with the tag [(0)] exists.
00118: &BREGEN: &ADelay [(0)] Amount[(0)] Interval[(0)];
00119: &BMOBS: &A(0)
00120: &B(0) &F> &A[(1)] &F: &A[(2)]

#Help Strings
01000: &6Help for /zone command.
01001: &6/zone name &B[name] &A - Sets the name of the zone.
01002: &6/zone flag &B[flag] [value] &A - Updates the flag to the value.
01003: &6/zone flag pvp &B[true|false] &A - Updates the pvp flag to the value.
01004: &6/zone flag fire &B[true|false] &A - Updates the fire flag to the value.
01005: &6/zone flag explode &B[true|false] &A - Updates the explode flag to the 
value.
01006: &6/zone flag mobs &B[MobType]... &A - Sets the allowed mobs.
01007: &6/zone flag regen &B[Amount] <Delay> <Interval> <MaxRegen> <MinDegen> 
<RestDelay> <BedBonus> &A - Updates the regen flag to the values.
01008: &6/zone flag sanctuary &B[true|false] &A - Updates the sanctuary flag to 
the value.
01009: &6/zone flag fireburnsmobs &B[true|false] &A - Updates the fireburnsmobs 
flag to the value.
01010: &6/zone floor &B[value] &A - Updates the floor to value.
01011: &6/zone ceiling &B[value] &A - Updates the ceiling to value.
01012: &6/zone child &B[add|remove] [ZoneTag]... &A - Adds or Removes the 
entered ZoneTags.
01013: &6/zone owner &B[add|remove] [PlayerName|GroupName]... &A - Adds or 
Removes the entered names.
01014: &6/zone message &B[enter|exit] [Message] &A - Updates the enter|exit 
message.
01015: &6/zone world &B[WorldName] &A - Updates the world the zone is in.
01016: &6/zone draw &A - Prompts you to go into Draw mode.
01017: &6/zone cancel &A - Discards all current changes.
01018: &6/zone delete &A - Deletes the zone you are currently editing.
01019: &6/zone save &A - Saves the zone to file.
01020: &6/zone save &A - Saves the point data you have drawn.
01021: &6/zone confirm &A - Clears point data and puts you into Draw mode.
01022: &6/zone cancel &A - Puts you back into Edit mode.
01023: &6/zone confirm &A - Deletes the zone you are currently editing.
01024: &6/zone edit &B[ZoneTag] &A - Begin editing the specified zone.
01025: &6/zone create &B[ZoneTag] &A - Create new zone with the specified tag.
01026: &6/zone list &A - Lists existing zones.
01027: &6/zone info &B[ZoneTag] &A - Detailed info for specified zone.

Original comment by jbla...@gmail.com on 5 May 2011 at 6:57

GoogleCodeExporter commented 9 years ago
Thanks, i've started already, but before i finish the sentences optimisation, i 
want to know if some characters are potentially bringing bugs to the plug-in, 
like :
-"é"
-"è"
-"â" 
which are very usual in French ... i can delete them, it will look different in 
French, but still understanding, and i may be able to change sentences 
disposition in order to make them easier.

Do you know already how you're gonna let the user choose is language ? 
different files : 
- ez_language_EN.yml
- ez_language_FR.yml
- ez_language_SP.yml

or different comments with some variable :
#English
language=0
[...]
#French
language=1
[...]
#Spanish
language=2
[...]

Those are just examples, i don't even know if it would work, or maybe you 
already have thought about that and found a great idea, as you usually do =)

Here you got a preview, i think i've respected the variables and other 
none-editable parts. Some sentences look quite long :s don't know if it matters 
in-game ? you'll tell me.

ez_language_FR.yml

#Français

#Formatting Strings
00000: ###,###,###
00001: &6(0): &A(1)
00002: &B(0): &AON
00003: &B(0): &COFF
00004: &6(0)
00005: &A(0) &6[(1)]

#Static Strings
00010: &B[] &6Required Parameter &B<> &6Optional Parameter &B... &6 Indicates 
repeatable. &B| &6 Indicates either/or
00011: &6Vous êtes actuellement en mode Edition.
00012: &6Vous êtes actuellement en mode Dessin.
00013: &6Vous êtes actuellement en mode Confirmation de Dessin.
00014: &6Vous êtes actuellement en mode Confirmation de Supression.
00015: EpicZones Rechargé.
00016: Modification de zone annulée, aucun changement sauvegardé.
00017: Mode dessin annulé, retour au mode édition. Tapez &6/zone &Fpour plus 
d'options.
00018: Zone enfant mise à jour.
00019: Commencez à dessiner votre zone avec l'outil d'édition de zone. Tapez 
/zone save quand vous aurez fini la délimitation.
00020: Zone Créée. &Commencez à dessiner votre zone avec l'outil d'édition 
de zone. Tapez &6/zone save &Fquand vous aurez fini la délimitation.
00021: ATTENTION! Passer en mode Dessin effacera toutes les limites de la zone! 
Tapez &6/zone draw confirm &F(accepter) ou &6/zone draw deny&F (refuser).
00022: Les zones globales ne peuvent pas être éditées.
00023: Aucune zone à lister.
00024: Vous ne possèdez aucune zone.
00025: Vous n'avez pas précisé si vous vouliez modifier les messages 'enter' 
ou 'exit'.
00026: Propriétaires de la Zone Mis à Jour.
00027: Parents de la zone Mis à Jour.
00028: Vous devez spécifier un seul point, avant de définir le rayon.
00029: Dessin Terminé.
00030: Vous devez dessiner au moins 3 points ou 1 point et définir un rayon, 
avant de pouvoir continuer.
00031: Zone Sauvegardée.
00032: Vous n'êtes pas autorisé à détruire dans cette zone.;
00033: Vous n'êtes pas autorisé à détruire en dehors des bords de la map.;
00034: Vous n'êtes pas autorisé à construire dans cette zone.;
00035: Vous n'êtes pas autorisé à construire en dehors des bords de la map.;
00036: Vous n'êtes pas autorisé à faire cela dans cette zone.
00037: Vous n'êtes pas autorisé à utiliser cette commande.

#Variable Strings
00100: Zone Mise à Jour. Changé (0) en [(1)]
00101: (0) n'est pas une valeur numérique.
00102: La Zone [(0)] a été éffacée.
00103: Une zone [(0)] existe déjà.
00104: Pour procéder à la suppresion de cette zone [(0)] tapez &6/zone 
confirm&F.
00105: Vous éditer actuellement la zone [(0)]
00106: Vous n'êtes pas autorisé à éditer la zone [(0)].
00107: Zone Mise à Jour. Paramètre [(0)] changé en [(1)].
00108: [(0)] n'est pas un paramètre valide.@@paramètres valides: pvp, mobs, 
regen, fire, explode, sanctuary
00109: Permission Ajoutée: [(0)] > [(1)] : [(2)]
00110: [(0)] n'est pas un type de permission valide.
00111: [(0)] is not a valid permission node.
00112: Point X: (0) Y: (1) ajouté à la zone [(2)].
00113: (0) joueurs en ligne [Page (1) sur (2)]
00114: (0) joueurs en ligne dans (1) [Page (2) sur (3)]
00115: (0) - (1) - Distance: (2)
00116: (0) - Distance: (1)
00117: Aucune zone du nom de [(0)] n'existe.
00118: &BREGEN: &ADelay [(0)] Amount[(0)] Interval[(0)];
00119: &BMOBS: &A(0)
00120: &B(0) &F> &A[(1)] &F: &A[(2)]

#Help Strings
01000: &6Aide pour les commandes /zone.
01001: &6/zone name &B[nom] &A - Définir le nom de la zone.
01002: &6/zone flag &B[paramètre] [valeur] &A - Mettre à jour la valeur d'un 
paramètre.
01003: &6/zone flag pvp &B[true|false] &A - Mettre à jour la valeur du 
paramètre pvp.
01004: &6/zone flag fire &B[true|false] &A - Mettre à jour la valeur du 
paramètre incendies.
01005: &6/zone flag explode &B[true|false] &A - Mettre à jour la valeur du 
paramètre explosions.
01006: &6/zone flag mobs &B[MobType]... &A - Définir les monstres autorisés.
01007: &6/zone flag regen &B[Quantité] <Delay> <Intervale> <MaxRegen> 
<MinDegen> <RestDelay> <BedBonus> &A - Mettre à jour la valeur du paramètre 
régénération.
01008: &6/zone flag sanctuary &B[true|false] &A - Mettre à jour la valeur du 
paramètre sanctuaire.
01009: &6/zone flag fireburnsmobs &B[true|false] &A - Mettre à jour la valeur 
du paramètre monstres sensibles au feu.
01010: &6/zone floor &B[value] &A - Mettre à jour la valeur du paramètre 
plancher.
01011: &6/zone ceiling &B[value] &A - Mettre à jour la valeur du paramètre 
plafond.
01012: &6/zone child &B[add|remove] [NomDeZone]... &A - Ajouter ou supprimer 
les zones concernées.
01013: &6/zone owner &B[add|remove] [PlayerName|GroupName]... &A - Ajouter ou 
supprimer les noms concernés.
01014: &6/zone message &B[enter|exit] [Message] &A - Mettre à jour le message 
d'entrée|sortie.
01015: &6/zone world &B[WorldName] &A - Mettre à jour le monde dans lequel se 
trouve la zone.
01016: &6/zone draw &A - Demande confirmation d'utiliser le mode Dessin.
01017: &6/zone cancel &A - Annule tout les changements en cours.
01018: &6/zone delete &A - Supprime la zone actuellement éditée.
01019: &6/zone save &A - Sauvegarde les données de la zone.
01020: &6/zone save &A - Sauvegarde le périmètre de la zone dessinée.
01021: &6/zone confirm &A - Efface les données de périmètre et vous place en 
mode Dessin.
01022: &6/zone cancel &A - Vous replace en mode Edition.
01023: &6/zone confirm &A - Supprime la zone actuellement éditée.
01024: &6/zone edit &B[NomDeZone] &A - Commencer l'édition de la zone 
spécifiée.
01025: &6/zone create &B[NomDeZone] &A - Créer une nouvelle zone.
01026: &6/zone list &A - Lister les zones existantes.
01027: &6/zone info &B[NomDeZone] &A - Informations détaillées sur la zone 
spécifiée.

Original comment by antoine3...@gmail.com on 6 May 2011 at 8:05

Attachments:

GoogleCodeExporter commented 9 years ago
This is awesome!

Yes, the server admin can config what file to use for epic zones. It's a 
setting in the config.yml

all language files will be placed in the Language folder, and the naming scheme 
is just the 2 letter abbreviation of the language.

I have added a few more lines to the file that i ended up releasing (and you 
can see that file in your language folder EN_US.txt)

If you change your file to FR.txt and change your language setting in your 
config.yml to FR you should be able to see the new language file loaded and 
providing the French messages.

Original comment by jbla...@gmail.com on 6 May 2011 at 2:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Good :) pretty easy for me now.

But, it's probably an issue from me, my tchat window is not big enough to show 
me the whole "editing help messages". Even if i open up the Tchat with "T" i'm 
only able to see half of the Helps. I cut off parts of the sentences in order 
to make them readable(not whole already...), but, is it possible to add a /zone 
help and /zone help2 command ? like showing two different pages ... close to 
the Essentials /help command (with 24 pages of command helps in my case) ?

I know i'm asking too much, don't focus too much on this issue, not big enough 
;) but, think about it =)

EDIT: I just noticed that the /zone help command only shows me the "/zone list" 
and "/zone info" help ... don't bother if i'm in editing mode or not.
The only why to see the Command Help message ( "/zone flag", ... all that stuff 
) is by going into editing mode, and entering a false command, like "/zone 
edit" again.
See if it's a bug, or if i'm doing something wrong ;)

Original comment by antoine3...@gmail.com on 6 May 2011 at 4:18

GoogleCodeExporter commented 9 years ago

Original comment by jbla...@gmail.com on 9 May 2011 at 9:38

GoogleCodeExporter commented 9 years ago
I made some more enhancements to the way languages are utilized in the plugin. 
In 0.27 i'll make sure that any missing language strings are handled, so that 
going forward bugs are not caused when a language file is not updated with all 
the strings.

Original comment by jbla...@gmail.com on 27 Sep 2011 at 3:27

GoogleCodeExporter commented 9 years ago

Original comment by jbla...@gmail.com on 27 Sep 2011 at 9:55

GoogleCodeExporter commented 9 years ago
This is now wrapped up inside of the version and will deploy.

The file is not complete however, there are a few English lines

Original comment by jbla...@gmail.com on 3 Oct 2011 at 3:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by jbla...@gmail.com on 3 Oct 2011 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by jbla...@gmail.com on 4 Oct 2011 at 1:59