Home › Forums › General Discussion › Translators, please read
- This topic has 18 replies, 3 voices, and was last updated 2 years, 11 months ago by
Alex Sikorsky.
-
AuthorPosts
-
2019-04-17 at 0:41 #16894
Hi dear translators,
I’ll use this topic to inform you about upcoming changes to the language file format, which will switch from JSON to YAML with the next update (it already has in SVN).
Please do not worry if you are still working on a JSON file – you can continue working on it, and I will merge the changes to the new format.
The reasons for this change are multiple, most importantly, easier multi-line editing, and getting rid of the necessity to escape special characters like tabs and line breaks, which was necessary with the JSON format. I chose YAML instead of rolling my own format (which I considered briefly) because it is quite readable for both humans and machines. I’m also using a restricted subset of YAML for the language files, as I do not need the more advanced markup. Please heed this when making changes on local copies.
A brief preview of the YAML format can be seen below, in case you are not yet familiar:
"key1": |- Value 1 line 1 Value 1 line 2 Value 1 line 4 (preceding line left blank intentionally) "key2": |- Value 2
GIT repository: https://github.com/fhoech/displaycal-localization
Pull requests welcome 🙂
-
This topic was modified 4 years, 7 months ago by
Florian Höch.
-
This topic was modified 4 years, 6 months ago by
Florian Höch. Reason: Add GitHub repository link
2019-05-09 at 12:50 #17322Suggest accepting CRLF line ending instead of only accept LF
Current workaround:
https://github.com/desktop/desktop/issues/3841#issuecomment-361480731-
This reply was modified 4 years, 7 months ago by
HarryYTM.
Attachments:
You must be logged in to view attached files.2019-05-09 at 18:39 #17330Yes, the format is convenient! How to quickly find the changed parts of the text and the new text in it?
2019-05-10 at 5:55 #173442019-05-10 at 14:57 #17352Suggest accepting CRLF line ending instead of only accept LF
Current workaround:
https://github.com/desktop/desktop/issues/3841#issuecomment-361480731Done.
Yes, the format is convenient! How to quickly find the changed parts of the text and the new text in it?
A search for
"*
should find all newly added strings. Other than these additions, I don’t think there have been any changes.The layout of the ‘Profile name’ dialog don’t look right to me, maybe need a bug fix?
Seems like GetTextExtent cannot figure out the correct width of the tab character and so the line breaks. I’ve fixed this by adding a bit more spacing (no change needed in translation file).
GIT repository is now live: https://github.com/fhoech/displaycal-localization
Pull requests welcome 🙂
2019-05-10 at 16:44 #17357GIT repository is now live: https://github.com/fhoech/displaycal-localization
Pull requests welcomeHow do I start a branch? Or I should fork the repo? Any rules here?
-
This reply was modified 4 years, 6 months ago by
HarryYTM.
2019-05-10 at 16:57 #17359Here is my repository, the ‘update’ branch is the latest:
https://github.com/harryytm/DisplayCAL_zh_HK2019-05-10 at 19:48 #17361How do I start a branch? Or I should fork the repo? Any rules here?
No rules yet. we’ll figure these out as we go I guess.
There’s currently two strings in your zh_hk.yaml that need to be updated/added:
"*info.display_tech"
(addition of QLED info)
"*measureframe.center.manual"
2019-05-10 at 21:53 #17368There’s currently two strings in your zh_hk.yaml that need to be updated/added:
"*info.display_tech"
(addition of QLED info)
"*measureframe.center.manual"
Merged in c532d7a50690d2e7a35be13864df6c621e495645
2019-05-10 at 22:32 #17369Thanks. Can you send a pull request?
2019-05-10 at 23:56 #17373Maybe it’s a good idea to do it in the merge window for next release because I consider my changes are just minor, let me know when you decided the next merge window.
2019-05-11 at 0:03 #17374There’s currently two strings in your zh_hk.yaml that need to be updated/added:<br>
"*info.display_tech"
(addition of QLED info)<br>
"*measureframe.center.manual"
Merged in c532d7a50690d2e7a35be13864df6c621e495645
I am most likely deprecate my repository and only maintain the fork repository if the fork workflow works well.
-
This reply was modified 4 years, 6 months ago by
HarryYTM.
2019-05-11 at 23:40 #17383version 3.8 is translated into Russian and Ukrainian languages.
Attachments:
You must be logged in to view attached files.2019-05-14 at 1:34 #17426Thanks, synced with GIT repo.
2019-05-14 at 2:31 #17427I think now (i.e. next 12-24 hours) would be a good time for a merge.
-
This topic was modified 4 years, 7 months ago by
-
AuthorPosts