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

Create pt_br.po #158

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Create pt_br.po #158

wants to merge 2 commits into from

Conversation

Carlos-Henreis
Copy link

Only the creation of pt_br.po already enough for Brazilian Portuguese translations for Pydio sync client?

Carlos Henrique Reis added 2 commits January 27, 2017 11:42
Brazilian portuguese language translations for sync client
 Brazilian portuguese language translations for sync client
@7omate
Copy link
Contributor

7omate commented Jan 27, 2017

Hi, thanks for this.

It's mostly enough to create the po file, meaning we can handle the rest (a few things are hard-coded since we don't yet support so many languages).

However we're doing a massing interface rework currently. I'll come back to you next week to see how those changes will look in the new version.

@Carlos-Henreis
Copy link
Author

It's ok. If I need any help, I'll be happy to

@7omate
Copy link
Contributor

7omate commented Feb 3, 2017

Hi,
I couldn't fully test yet but it should mostly work.
There are several typos in your po file (such as "..."; instead of "...;", msgid instead of msgstr and other stuff)

pt_br.po:188:7: syntax error
pt_br.po:718:53: syntax error
pt_br.po:727:42: syntax error
pt_br.po:731:24: syntax error
pt_br.po:735:36: syntax error
pt_br.po:785:33: syntax error
pt_br.po:904: missing 'msgstr' section
pt_br.po:905: missing 'msgstr' section
pt_br.po:945:73: syntax error
pt_br.po:1099: duplicate message definition...
pt_br.po:701: ...this is the location of the first definition
pt_br.po:1103: missing 'msgstr' section
pt_br.po:1104: missing 'msgstr' section
pt_br.po:1321:36: invalid control sequence
pt_br.po:1322: end-of-line within string
msgfmt: found 14 fatal errors

The next step for this version is to edit ui/res/general_configs.html and add pt_br opt
And run msgfmt pt_br.po --output-file pt/LC_MESSAGES/pydio.mo and our html compile thing.


To work on the new version of Pydio-sync you need to:

  1. checkout the branch materialUI.
  2. Run python main.py --extract_html=extract
  3. Run msginit --input=pydio.pot --locale=pt_BR --output-file=pt_br.po (details in utils/i18n.py)
  4. (Optional) Run python main.py --extract_html=compile and commit all relevant files.

@Carlos-Henreis
Copy link
Author

ok I'll check

@jmruas
Copy link

jmruas commented Jul 9, 2017

Hi,
Can't edit any .po file with poedit (WIndows 10).
JMRuas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants