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

chore: remove false positive translations a.k.a. EN definitions in non EN dicts #9576

Merged
merged 4 commits into from Jun 5, 2023

Conversation

Bad3r
Copy link
Collaborator

@Bad3r Bad3r commented Jun 3, 2023

TODO:

  • Remove duplicate English definitions from other dictionaries
  • Fix typo Back Links --> Backlinks

Notes:

  • removed some options due to deprecation (They do not exist in the English dictionary)
    • :command.editor/insert-link
    • :command.misc/copy
  • There is a higher likelihood of false positives to positive negatives to make the review process easier
  • revert user-specific style changes that do not conform with the English dictionary
    • Example: replacing 'plugin' with 'extention'. Such a decision should be made in the English dictionary for consistency.

@github-actions github-actions bot added the chore label Jun 3, 2023
@Bad3r Bad3r changed the title chore: remove EN definitions in non EN dicts [WIP] chore: remove EN definitions in non EN dicts Jun 3, 2023
@Bad3r Bad3r force-pushed the chore/update-non-en-dicts branch from 12a2126 to f53abb8 Compare June 3, 2023 05:43
@Bad3r
Copy link
Collaborator Author

Bad3r commented Jun 3, 2023

Hey @logseq-cldwalker, this PR is a follow-up to the discussion #9564 (comment). Please TAL when you get a chance.

@Bad3r Bad3r force-pushed the chore/update-non-en-dicts branch 2 times, most recently from 3fc3214 to 0bdf3e1 Compare June 3, 2023 05:55
@Bad3r Bad3r changed the title [WIP] chore: remove EN definitions in non EN dicts chore: remove EN definitions in non EN dicts Jun 3, 2023
@Bad3r Bad3r force-pushed the chore/update-non-en-dicts branch from 0bdf3e1 to 68a339c Compare June 3, 2023 06:24
Copy link
Collaborator

@cnrpman cnrpman left a comment

Choose a reason for hiding this comment

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

Have a manual check on all items. LGTM

@logseq-cldwalker logseq-cldwalker self-assigned this Jun 5, 2023
There are still a few to remove.
Remove lang:duplicates as it's now included in the linter
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.

@Bad3r Thanks for the help with removing false positives! 👍 🚢 With these removals I've been able to update the lang linter to disallow duplicates. I'll address the remaining few that were caught and address the comments

@@ -396,7 +393,6 @@
:command.search/re-index "Reconstruir índice de búsqueda"
:command.editor/bold "Negrita"
:command.editor/italics "Cursiva"
:command.editor/insert-link "Enlace html"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We shouldn't be deleting these if they are translated. In en.edn this exists as :editor/insert-link. There is still some tech debt to address later around removing the weird mappings between shortcuts that don't have the :command prefix and their language keys which do have the :command prefix

Copy link
Collaborator

Choose a reason for hiding this comment

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

Forgot to mention that bb lang:validate-translations already catches unused keys automatically so this isn't something we have to be looking out for

@@ -109,21 +107,17 @@
:open-a-directory "Ouvrir un dossier local"
:open-new-window "Nouvelle fenêtre"
:page-search "Chercher dans la page en cours"
:plugins "Extensions"
Copy link
Collaborator

Choose a reason for hiding this comment

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

French users purposely use extensions to mean plugins so I can undo these changes. Worth discussing this with french users in discord if you have a strong opinion about it as there are more places in this file to address

@logseq-cldwalker logseq-cldwalker changed the title chore: remove EN definitions in non EN dicts chore: remove false positive translations a.k.a. EN definitions in non EN dicts Jun 5, 2023
@@ -20,11 +20,9 @@
:export-page "Seite exportieren"
:export-public-pages "Öffentliche Seiten exportieren"
:export-roam-json "Als Roam JSON exportieren"
:graph "Graph"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Romance languages do use the same English word from time to time so I'm bringing some of these back that I've confirmed are correct. There's an allowed duplicates config in lang.clj for these exceptions

Copy link
Collaborator Author

@Bad3r Bad3r Jun 5, 2023

Choose a reason for hiding this comment

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

sounds good. The issue I ran into with this is where to set the line? For example many Germanic languages use 'code' and 'plugin' since there is no equivalent for it in many languages.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@@ -490,7 +470,6 @@
:command.graph/re-index "Aktuellen Graph neu indizieren"
:command.graph/remove "Einen Graph entfernen"
:command.graph/save "Aktuellen Graph auf Festplatte speichern"
:command.misc/copy "mod+c"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Agree with removing "mod+c" everywhere as this is the only key that used the keybinding as a description, which isn't helpful

Also undo removals in this PR of translations that were being used.
Also changed :misc/copy translation since it didn't have a meaningful
description
@logseq-cldwalker logseq-cldwalker merged commit a1fb1cf into logseq:master Jun 5, 2023
6 checks passed
@Bad3r Bad3r deleted the chore/update-non-en-dicts branch June 5, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants