GlobalCollapse icon indicating copy to clipboard operation
GlobalCollapse copied to clipboard

Move all text from templates to locale file

Open matronator opened this issue 4 years ago • 6 comments

Lot of the UI text in the game is hardcoded in the template files (due to my laziness and poor planning ahead) and should be replaced with link to the locale file here.

So for example you'd change this:

app/modules/Front/templates/Default/default.latte

...
<ul class="uk-list uk-list-divider uk-margin-remove">
    <li>Level</li>
    <li>Money</li>
    <li>Energy</li>
</ul>
...

To this:

app/modules/Front/templates/Default/default.latte

...
<ul class="uk-list uk-list-divider uk-margin-remove">
    <li>{_general.stats.level.title}</li>
    <li>{_general.stats.money.title}</li>
    <li>{_general.stats.energy.title}</li>
</ul>
...

app/lang/general.en_US.neon

...
stats:
    level:
        title: 'Level'
    money:
        title: 'Money'
    energy:
        title: 'Energy'
...

If you want to help out with that, please search the locale file (CTRL+F / CMD+F) if there isn't an entry for the same phrase already before creating new entry to prevent duplicates.

No need to create an entry in the cs_CZ locale file as well, that can be translated later. Right now, the priority is English.

matronator avatar Apr 26 '20 15:04 matronator

Interested in a german version?

Yarblen avatar Mar 14 '22 18:03 Yarblen

Sure, that'd be great if you're up to it! :)

matronator avatar Mar 14 '22 21:03 matronator

Ok, will you open a new path for german and I will translate the code. Tell me what I have to so.

Yarblen avatar Mar 14 '22 21:03 Yarblen

Took a copy and working on it.

Yarblen avatar Mar 15 '22 10:03 Yarblen

@Yarblen So sorry I didn't reply, some stuff came up and then I forgot. So you figured it out then?

matronator avatar Mar 31 '22 19:03 matronator

If you need any help with it, just let me know.

matronator avatar Apr 05 '22 13:04 matronator