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

Translation fields are not synchronized to other language files, such as Chinese. #989

Closed
ZhangChengLin opened this issue Jun 3, 2019 · 6 comments
Labels
internationalization Related to the localization feature up-for-grabs Not assigned yet

Comments

@ZhangChengLin
Copy link

ZhangChengLin commented Jun 3, 2019

'SIGN_IN_HERE' => 'Already have an account? <a href="{{url}}">Sign in here.</a>',

https://xxx.com/userfrosting/public/account/register
The above is an example address, and no other comparisons have been made. If it is automated, please update it in time.

@lcharette lcharette added internationalization Related to the localization feature up-for-grabs Not assigned yet labels Jun 3, 2019
@lcharette
Copy link
Member

There could be some locale that are missing keys or are out of sync with English. If you can submit a Pull Request with the missing translation, that would be great.

Related #671

@ZhangChengLin
Copy link
Author

ZhangChengLin commented Jun 3, 2019

There could be some locale that are missing keys or are out of sync with English. If you can submit a Pull Request with the missing translation, that would be great.

Related #671

https://github.com/rasmusbe/wp-pot
https://github.com/rasmusbe/gulp-wp-pot

There is this tool under WordPress that can help theme or plugin developers to quickly and accurately generate corresponding po translation files based on php files. Perhaps the author of this tool has the ability to help UF to do a similar tool if he can generate interest.

Now, even the most basic en_US does not contain all the fields that need to be translated, because there is no need to translate in the English state, but it is cumbersome and incomplete for those who want to translate other languages ​​according to the en_US file. .

QQ截图20190603221617

@lcharette
Copy link
Member

Looks like the screenshot also catch block that moved around (not in the same order). Usually, it's best to have entries in the translation files sorted alphabetically.

A simple tool for #671 could be getting a list of all keys (ie HASH_FAILED ) available in EN_US and comparing if the same key exist in another language (and is the same translated value), returning a list of keys that are missing from the targeted translation.

@ZhangChengLin
Copy link
Author

https://github.com/umpirsky/Twig-Gettext-Extractor

This looks like a good tool.

@amosfolz
Copy link
Contributor

@ZhangChengLin Can you help with translating? #1027

@lcharette
Copy link
Member

Closing this issue. Let's focus on #1027

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internationalization Related to the localization feature up-for-grabs Not assigned yet
Projects
None yet
Development

No branches or pull requests

3 participants