Commit Graph

23 Commits (5b99610212a4b221d1c256037b816a9f072786f3)

Author SHA1 Message Date
Gabriel Horner 283d084de2 Simplify fn translations in light of #10868
- Reverted overly complex fn translations from #10810
- Updated guidelines so it's clear that fn translations need to remain
simple. They shouldn't be so complex that they fail for edge cases
- Updated catch so we are aware when translations fail
2024-01-18 23:39:37 +08:00
omahs 52134b3617
fix(docs): typos (#10143) 2023-09-05 11:23:21 +08:00
Gabriel Horner 43df7dfd9a Translate two translations that weren't usable by all langs
See #9716. Position matters for some langs like Turkish
2023-06-23 09:51:33 -04:00
Gabriel Horner 17d9e645c1 Update section on linting translations inspired by contributor confusion
Hoping this helps contributions like #9686 and #9655
2023-06-19 13:28:35 -04:00
Gabriel Horner cf7fd0ffc0 Add tips for new editing conventions introduced in PR 2023-06-13 12:39:05 -04:00
Gabriel Horner 1765ecfb02 Fix duplicates that were caught by linter
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
2023-06-05 14:00:11 -04:00
Gabriel Horner 2d60d95bc5 Update lang validation to detect duplicates
There are still a few to remove.
Remove lang:duplicates as it's now included in the linter
2023-06-05 11:09:35 -04:00
Gabriel Horner ad3eda7c25 Tutorial fix and refactor. Update docs
* Some langs like es didn't have tutorials translated and were
  pretending to
* it lang had tutorials but they weren't being used
* Moved tutorials to the more appropriate src/resources/tutorials
* Also fixed typos and bb task
2023-05-24 16:57:48 -04:00
Gabriel Horner 514b5faf6e Refactor and simplify dicts
- frontend.dicts encapsulates dicts behavior for all other namespaces
- Each dict ns only has one var which prepares us
- No longer need shortcut.dicts
- Fix remaining lints that were broken
- Also bring back frontend.dicts
- Update guide
- Add a false binding to :editor/toggle-undo-redo-mode which throws a
  needless warning
2023-05-18 18:13:50 -04:00
Avelino 69bbf044a9 docs/lang: describe how to add a new language
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Avelino 1d14f6a98f centralize translation dictionary
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Avelino 184ace5ad6 update documentation to new translation structure (standalone package)
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Gabriel Horner f645daf724 Add a --copy to support suggested translation workflow
Follow up to #9115
2023-04-17 10:53:43 -04:00
hasecilu 20b2e06427 Improve contributing-to-translations doc 2023-04-17 10:53:04 -04:00
Gabriel Horner 2697f2b588 Improve doc wording for https://github.com/logseq/logseq/pull/9070\#issuecomment-1505816096 2023-04-14 11:37:05 -04:00
Konstantinos 2cace8894c
Enhance: Add more translations, remove unused ones and add linter for unused (#8568)
* chore: remove unused dictionary keys

* wip: add dictionary keys for hardcoded strings

* resolve conflicts

* Add linter to detect :en ui translation keys match used ones

- Fix a couple entries caught by linter
- Copy :command.editor/open-link-in-sidebar entries to
  :help/open-link-in-sidebar as translation keys shouldn't be reused in
  multiple contexts, especially when it's across ui and shortcut dicts

* fix: remove dead keys

* chore: reuse dict keys

* chore: reintroduce useful keys

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-24 09:21:57 -05:00
Gabriel Horner f39f26c8d3 Improve and update lint documentation 2022-07-07 09:34:08 -04:00
TaylorHo f810cc2034 Translations pt-BR and it + corrected broken links 2022-05-29 16:21:19 +08:00
Gabriel Horner 262a761b53 Remove tutorial keys which weren't translated and explain tutorials more 2022-03-30 10:12:54 -04:00
Gabriel Horner f4839da1e1 Make dictionary namespaces bb compatible
Now that translations are just data no excuse for them not being bb
compatible. Also gets rid of needless sexp parsing
2022-03-28 12:33:28 -04:00
Giuseppe D'Andrea e6ecc1cfb9 fix: broken links in docs 2022-03-19 00:00:20 +08:00
Gabriel Horner 0fcdb498d8 Update lang tasks to also read shortcuts
- Updated docs with more accurate picture of translation state
- invalid task found keys that were no longer used from 2 commands
- Cleaned up rewrite-clj
2022-02-02 11:26:20 -05:00
Gabriel Horner 76f6ecc937 Add a translating guide and tweak tasks 2022-01-28 17:19:25 -05:00