Skip to content

Commit

Permalink
Add localization support
Browse files Browse the repository at this point in the history
  • Loading branch information
FreaxMATE committed Mar 19, 2023
1 parent 2e22b81 commit cada7f3
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 283 deletions.
1 change: 1 addition & 0 deletions data/icons/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

install_data(['gummi.png',], install_dir: join_paths(icondir,'512x512/apps/'))
install_data(['icon.png',], install_dir: join_paths(gummidir,'icons/'))

16 changes: 13 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'gummi',
'c',
version: '0.8.2',
version: '0.8.3',
license: 'MIT',
meson_version: '>=0.50.0'
)
Expand Down Expand Up @@ -37,18 +37,28 @@ build_args = [
'-DGUMMI_DATA=' + '"' + join_paths(prefix, gummidir) + '"',
'-DGUMMI_LIBS=' + '"' + join_paths(prefix, libdir, meson.project_name()) + '"',
'-DGUMMI_LOCALES=' + '"' + join_paths(prefix, localesdir) + '"',

]

add_project_arguments([
'-DGETTEXT_PACKAGE=\"@0@\"'.format(meson.project_name())
],
language: 'c',
)

i18n = import('i18n')

conf_data = configuration_data()
conf_data.set('PACKAGE_NAME', 'Gummi')
conf_data.set('PACKAGE', meson.project_name())
conf_data.set_quoted('GETTEXT_PACKAGE', 'mate-calc')
conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf_data.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))

install_data(['COPYING',], install_dir: join_paths(datadir,'licences/gummi/'))

subdir('src')
subdir('data')
subdir('lib')
subdir('po')

meson.add_install_script('meson-post-install.py')

1 change: 1 addition & 0 deletions po/LINGUAS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ar ca cs da de el es fr hu ie it nl pl pt pt_BR ro ru sv zh_CN zh_TW
Loading

0 comments on commit cada7f3

Please sign in to comment.