-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support interface localisation using GNU gettext
The xkeyboard-config library is required as a runtime dependency to present a localized string of the keyboard layout. Useful links: - https://www.gnu.org/software/gettext/manual/gettext.html#Sources - https://mesonbuild.com/Localisation.html - https://mesonbuild.com/i18n-module.html
- Loading branch information
Showing
10 changed files
with
141 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
de fr |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
render.c |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# German translations for swaylock package. | ||
# Copyright (C) 2020 THE swaylock'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the swaylock package. | ||
# Automatically generated, 2020. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: swaylock 1.6\n" | ||
"Report-Msgid-Bugs-To: https://github.com/swaywm/swaylock/issues\n" | ||
"POT-Creation-Date: 2020-08-18 14:46+0200\n" | ||
"PO-Revision-Date: 2020-08-18 15:25+0200\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: de\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: render.c:161 | ||
msgid "verifying" | ||
msgstr "Überprüfung" | ||
|
||
#: render.c:164 | ||
msgid "wrong" | ||
msgstr "falsch" | ||
|
||
#: render.c:167 | ||
msgid "cleared" | ||
msgstr "gelöscht" | ||
|
||
#: render.c:174 | ||
msgid "Caps Lock" | ||
msgstr "Feststelltaste" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# French translations for swaylock package. | ||
# Copyright (C) 2020 THE swaylock'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the swaylock package. | ||
# Automatically generated, 2020. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: swaylock 1.6\n" | ||
"Report-Msgid-Bugs-To: https://github.com/swaywm/swaylock/issues\n" | ||
"POT-Creation-Date: 2020-08-18 14:46+0200\n" | ||
"PO-Revision-Date: 2020-08-18 14:50+0200\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#: render.c:161 | ||
msgid "verifying" | ||
msgstr "vérification" | ||
|
||
#: render.c:164 | ||
msgid "wrong" | ||
msgstr "incorrect" | ||
|
||
#: render.c:167 | ||
msgid "cleared" | ||
msgstr "effacé" | ||
|
||
#: render.c:174 | ||
msgid "Caps Lock" | ||
msgstr "Verr Maj" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
i18n = import('i18n') | ||
|
||
add_project_arguments( | ||
[ | ||
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), | ||
'-DLOCALEDIR="@0@"'.format(get_option('prefix') / get_option('localedir')) | ||
], | ||
language:'c' | ||
) | ||
i18n.gettext(meson.project_name(), | ||
args: [ | ||
'--directory=' + meson.source_root(), | ||
'--package-name=' + meson.project_name(), | ||
'--package-version=' + meson.project_version(), | ||
'--msgid-bugs-address=https://github.com/swaywm/swaylock/issues', | ||
] | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the swaylock package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: swaylock 1.6\n" | ||
"Report-Msgid-Bugs-To: https://github.com/swaywm/swaylock/issues\n" | ||
"POT-Creation-Date: 2020-08-18 14:46+0200\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=CHARSET\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: render.c:161 | ||
msgid "verifying" | ||
msgstr "" | ||
|
||
#: render.c:164 | ||
msgid "wrong" | ||
msgstr "" | ||
|
||
#: render.c:167 | ||
msgid "cleared" | ||
msgstr "" | ||
|
||
#: render.c:174 | ||
msgid "Caps Lock" | ||
msgstr "" |
This file contains 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