Add Russian localization#29
Open
NaumovSN wants to merge 1 commit into
Open
Conversation
GTK4 template translatable=yes does not work in GJS because set_translation_domain() is not exposed in GJS bindings. Override this by setting all translatable strings programmatically via _() in JavaScript. Key changes: - src/main.js: override imports.package.localedir to ~/.local/share/locale before pkg.initGettext() so translations work from any launcher - src/ui/window.js: set all UI strings (title, placeholders, labels, dropdown items, tooltips, menu) via _() in constructor - src/managers/index.js: wrap all dialog strings in _() - data/ui/window.ui: remove translatable=yes, add widget IDs - data/org.ramez.terminator.in: set GETTEXT_PACKAGE, TEXTDOMAINDIR, LANGUAGE in launcher - data/org.ramez.terminator.desktop.in: set DBusActivatable=false - po/ru.po: full Russian translation (266 lines) - po/LINGUAS: add ru - po/POTFILES.in: update source file list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Russian localization
GTK4 template
translatable=yesdoes not work in GJS becauseset_translation_domain()is not exposed in GJS bindings. Override this by setting all translatable strings programmatically via_()in JavaScript.Key changes
imports.package.localedirto~/.local/share/localebeforepkg.initGettext()so translations work from any launcher_()in constructor_()translatable=yes, add widget IDsGETTEXT_PACKAGE,TEXTDOMAINDIR,LANGUAGEin launcherDBusActivatable=falseru