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

German translation #1111

Closed
dbx-one opened this issue Mar 25, 2018 · 6 comments
Closed

German translation #1111

dbx-one opened this issue Mar 25, 2018 · 6 comments
Assignees
Milestone

Comments

@dbx-one
Copy link
Member

dbx-one commented Mar 25, 2018

So far there is no German translation. I would like to implement that, if interested?

@virtualtam
Copy link
Member

Hi @buster-one, that would be great!

You can find the translation guide here: https://shaarli.readthedocs.io/en/master/Translations/

@dbx-one
Copy link
Member Author

dbx-one commented Mar 25, 2018

I am glad that I can contribute to this project. I will check the guide and then get started.

@virtualtam
Copy link
Member

Thanks, let us know if you need any help using Poedit or submitting a Pull Request on Github :)

@dbx-one
Copy link
Member Author

dbx-one commented Mar 26, 2018

Are the german entries added as new lines, or i just replace the entry french with german? Or has the german language set elsewhere before. Then generate PHP cache files to extract the translatable strings.

I think the new language must first be defined.

shaarli.po

#: application/Languages.php:162
msgid "English"
msgstr ""

#: application/Languages.php:163
msgid "French"
msgstr ""

@virtualtam
Copy link
Member

A new translation file should be created, using the existing French translation as a template.

There are instructions in the docs to add a new language: https://shaarli.readthedocs.io/en/master/Translations/#add-a-new-language

Note that you should not edit the .po files directly, and use Poedit instead for both convenience and spell-checking.

To create the German translation:

  • prerequisites:
    • Poedit is installed
  • start Poedit
  • choose Create New Translation
  • navigate to the existing French translation and select it to use it as a template:
    • it is located under <your shaarli directory>/inc/languages/fr/LC_MESSAGES/shaarli.po
  • a dialog box will open, asking what language the new translation is in:
    • here, you should select German
    • optionally, install the German dictionary for spell checking
  • save the new German translation file under:
    • <your shaarli directory>/inc/languages/de/LC_MESSAGES/shaarli.po

Upon each save, Poedit will compile the translation and generate the corresponding shaarli.mo machine object file.

To test the translation, a configured web server is required, as well as a development environment to build Shaarli from source code:

@virtualtam
Copy link
Member

Closed by #1114

@virtualtam virtualtam added this to the 0.10.0 milestone Apr 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants