mirror of
https://github.com/bottlesdevs/Bottles.git
synced 2026-10-16 21:51:15 +08:00
fix[closes #4146]: use the RDNN gettext domain
This commit is contained in:
committed by
Mirko Brombin
parent
e8fcd24440
commit
2d4468a8c9
@@ -43,7 +43,7 @@ if __name__ == "__main__":
|
||||
from bottles.frontend.utils.localization import apply_ui_language
|
||||
|
||||
apply_ui_language(Gio.Settings.new(APP_ID).get_string("ui-language"))
|
||||
gettext.install("bottles", localedir)
|
||||
gettext.install("com.usebottles.bottles", localedir)
|
||||
|
||||
data_resource = Gio.Resource.load(data_gresource_path)
|
||||
bottles_resource = Gio.Resource.load(bottles_gresource_path)
|
||||
|
||||
@@ -72,10 +72,10 @@ locale_dir = path.join(share_dir, "locale")
|
||||
if not path.exists(locale_dir): # development
|
||||
locale_dir = path.join(base_dir, "build", "mo")
|
||||
|
||||
locale.bindtextdomain("bottles", locale_dir)
|
||||
locale.textdomain("bottles")
|
||||
gettext.bindtextdomain("bottles", locale_dir)
|
||||
gettext.textdomain("bottles")
|
||||
locale.bindtextdomain("com.usebottles.bottles", locale_dir)
|
||||
locale.textdomain("com.usebottles.bottles")
|
||||
gettext.bindtextdomain("com.usebottles.bottles", locale_dir)
|
||||
gettext.textdomain("com.usebottles.bottles")
|
||||
_ = gettext.gettext
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist gettext-domain="bottles">
|
||||
<schemalist gettext-domain="com.usebottles.bottles">
|
||||
<schema id="@APP_ID@" path="/com/usebottles/bottles/">
|
||||
<key type="b" name="flatpak-migration">
|
||||
<default>true</default>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<caption>Installers Page</caption>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<translation type="gettext">bottles</translation>
|
||||
<translation type="gettext">com.usebottles.bottles</translation>
|
||||
<content_rating type="oars-1.1"/>
|
||||
<url type="homepage">https://usebottles.com</url>
|
||||
<url type="bugtracker">https://github.com/bottlesdevs/Bottles/issues</url>
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ language_list = fs.read('LINGUAS').strip().split('\n')
|
||||
language_list += ['zh_CN', 'zh_HK', 'zh_SG', 'zh_TW']
|
||||
|
||||
i18n.gettext(
|
||||
'bottles',
|
||||
'com.usebottles.bottles',
|
||||
install_dir: localedir,
|
||||
preset: 'glib',
|
||||
args: '--from-code=UTF-8',
|
||||
|
||||
Reference in New Issue
Block a user