-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes swappy more i18n friendly through the use of `gettext` with `meson` i18n module.
- Loading branch information
Showing
7 changed files
with
124 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ if libnotify.found() | |
endif | ||
|
||
subdir('res') | ||
subdir('src/po') | ||
|
||
executable( | ||
'swappy', | ||
|
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,2 @@ | ||
# Set of available languages. | ||
en |
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 @@ | ||
res/swappy.glade |
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,50 @@ | ||
# English translations for swappy package. | ||
# Copyright (C) 2020 THE swappy'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the swappy package. | ||
# Automatically generated, 2020. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: swappy\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-06-21 21:57-0400\n" | ||
"PO-Revision-Date: 2020-06-21 21:57-0400\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: en\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=ASCII\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: res/swappy.glade:455 | ||
msgid "Line Width" | ||
msgstr "Line Width" | ||
|
||
#: res/swappy.glade:525 | ||
msgid "Text Size" | ||
msgstr "Text Size" | ||
|
||
#: res/swappy.glade:641 | ||
msgid "Toggle Paint Panel" | ||
msgstr "Toggle Paint Panel" | ||
|
||
#: res/swappy.glade:667 | ||
msgid "Undo Last Paint" | ||
msgstr "Undo Last Paint" | ||
|
||
#: res/swappy.glade:686 | ||
msgid "Redo Previous Paint" | ||
msgstr "Redo Previous Paint" | ||
|
||
#: res/swappy.glade:705 | ||
msgid "Clear Paints" | ||
msgstr "Clear Paints" | ||
|
||
#: res/swappy.glade:733 | ||
msgid "Copy Surface" | ||
msgstr "Copy Surface" | ||
|
||
#: res/swappy.glade:749 | ||
msgid "Save Surface" | ||
msgstr "Save Surface" |
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,8 @@ | ||
i18n = import('i18n') | ||
|
||
# define GETTEXT_PACKAGE | ||
add_project_arguments('-DGETTEXT_PACKAGE="intltest"', language:'c') | ||
|
||
i18n.gettext(meson.project_name(), | ||
args: '--directory=' + meson.source_root() | ||
) |
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,50 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the swappy package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: swappy\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-06-21 21:57-0400\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=CHARSET\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: res/swappy.glade:455 | ||
msgid "Line Width" | ||
msgstr "" | ||
|
||
#: res/swappy.glade:525 | ||
msgid "Text Size" | ||
msgstr "" | ||
|
||
#: res/swappy.glade:641 | ||
msgid "Toggle Paint Panel" | ||
msgstr "" | ||
|
||
#: res/swappy.glade:667 | ||
msgid "Undo Last Paint" | ||
msgstr "" | ||
|
||
#: res/swappy.glade:686 | ||
msgid "Redo Previous Paint" | ||
msgstr "" | ||
|
||
#: res/swappy.glade:705 | ||
msgid "Clear Paints" | ||
msgstr "" | ||
|
||
#: res/swappy.glade:733 | ||
msgid "Copy Surface" | ||
msgstr "" | ||
|
||
#: res/swappy.glade:749 | ||
msgid "Save Surface" | ||
msgstr "" |