Skip to content

Commit

Permalink
Try using a different name for gettext
Browse files Browse the repository at this point in the history
  • Loading branch information
ryonakano committed Jan 3, 2025
1 parent 802f69b commit 5d4c2e1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ project('io.github.myteam.myapp', 'vala', 'c')
# Include the translations module
i18n = import('i18n')

# Use different name for gettext
gettext_name = 'myapp'

# Set our translation domain
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (gettext_name), language:'c')

config_data = configuration_data()
# Provide a path of the directory where translation binary files (*.mo) are located
config_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
# Provide translation domain name
config_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
config_data.set_quoted('GETTEXT_PACKAGE', gettext_name)
config_file = configure_file(
input: 'src' / 'Config.vala.in',
output: '@BASENAME@',
Expand Down
2 changes: 1 addition & 1 deletion po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.github.yourusername.yourrepositoryname\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-05 18:32-0700\n"
"POT-Creation-Date: 2025-01-03 17:43+0900\n"
"PO-Revision-Date: 2020-07-22 15:12-0700\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down
2 changes: 1 addition & 1 deletion po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.github.yourusername.yourrepositoryname\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-05 18:32-0700\n"
"POT-Creation-Date: 2025-01-03 17:43+0900\n"
"PO-Revision-Date: 2020-07-22 15:12-0700\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down
2 changes: 1 addition & 1 deletion po/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
i18n.gettext(meson.project_name(),
i18n.gettext(gettext_name,
args: '--directory=' + meson.project_source_root(),
preset: 'glib'
)
6 changes: 3 additions & 3 deletions po/io.github.myteam.myapp.pot → po/myapp.pot
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the io.github.myteam.myapp package.
# This file is distributed under the same license as the myapp package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: io.github.myteam.myapp\n"
"Project-Id-Version: myapp\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-05 18:32-0700\n"
"POT-Creation-Date: 2025-01-03 17:43+0900\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"
Expand Down

0 comments on commit 5d4c2e1

Please sign in to comment.