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

i18n: update Turkish translation #9070

Merged
merged 1 commit into from Apr 12, 2023

Conversation

queeup
Copy link
Contributor

@queeup queeup commented Apr 11, 2023

No description provided.

Copy link
Collaborator

@logseq-cldwalker logseq-cldwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@queeup Thanks! 👍

@logseq-cldwalker logseq-cldwalker merged commit bbaf3e5 into logseq:master Apr 12, 2023
6 checks passed
@hasecilu
Copy link
Contributor

Hi, I hope not to bother but ... I want to translate to Spanish but I don't understand something: do I need to manually type both the :translation-key and the :string-to-translate to the files? or there is a way to create an intermediate file like a po file?
I have identify the missing strings with bb lang:missing es but I don't know how to:

Now, add keys for your language, save and rerun the above command.

It's done editing manually the file or there is a command?

@queeup
Copy link
Contributor Author

queeup commented Apr 13, 2023

@hasecilu You have to do it manually.

logseq-cldwalker added a commit that referenced this pull request Apr 14, 2023
@logseq-cldwalker
Copy link
Collaborator

@hasecilu Hi. Thanks for taking a look. You have to edit the files at https://github.com/logseq/logseq/blob/master/docs/contributing-to-translations.md#where-to-contribute. I've updated that wording to make it clearer

@hasecilu
Copy link
Contributor

Thanks for your responses, since this process is a LITTLE tedious I made a small linux command to filter the output of bb command y leave ready to paste it in the dict files.

bb lang:missing es | awk -F '|' '{print $2 "\"" $3 "\""}' | sed 's/  //g' | sed 's/ :/:/g' > untranslated_strings.txt

transforms the output:

|                       :settings-page/tab-features |                                              Features | frontend/dicts.cljs |
|              :whiteboard/link-whiteboard-or-block |                            Link whiteboard/page/block | frontend/dicts.cljs |
|                   :command.auto-complete/complete |                   Auto-complete: Choose selected item | shortcut/dicts.cljs |
|                       :command.auto-complete/next |                       Auto-complete: Select next item | shortcut/dicts.cljs |

to

:settings-page/tab-features "Features "
:whiteboard/link-whiteboard-or-block "Link whiteboard/page/block "
:command.auto-complete/complete " Auto-complete: Choose selected item "
:command.auto-complete/next " Auto-complete: Select next item "

Leaving it more manageable for the translator and (almost) ready to paste in the dict files.

The translator just need to check which strings go to which file and since the bb output is ordered it is only to split the strings in "half" and make the needed tabs.

bendyorke pushed a commit that referenced this pull request May 9, 2023
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.

None yet

3 participants