Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all text from templates to locale file #1

Open
matronator opened this issue Apr 26, 2020 · 6 comments
Open

Move all text from templates to locale file #1

matronator opened this issue Apr 26, 2020 · 6 comments
Labels
class: translations Translations and localization good first issue Good for newcomers help wanted Extra attention is needed

Comments

@matronator
Copy link
Owner

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 matronator added help wanted Extra attention is needed good first issue Good for newcomers class: translations Translations and localization labels Apr 26, 2020
@matronator matronator added this to Todo in Translations Apr 28, 2020
@matronator matronator moved this from Todo to In progress in Translations May 7, 2020
@Yarblen
Copy link

Yarblen commented Mar 14, 2022

Interested in a german version?

@matronator
Copy link
Owner Author

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

@Yarblen
Copy link

Yarblen commented Mar 14, 2022

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

@Yarblen
Copy link

Yarblen commented Mar 15, 2022

Took a copy and working on it.

@matronator
Copy link
Owner Author

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

@matronator
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class: translations Translations and localization good first issue Good for newcomers help wanted Extra attention is needed
Projects
Translations
  
In progress
Development

No branches or pull requests

2 participants