Merge branch 'po' into 'master'
Add initial po support Closes #315 See merge request World/Phosh/squeekboard!497
This commit is contained in:
		@ -1,19 +1,12 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<!-- Generated with glade 3.22.1 -->
 | 
			
		||||
<!-- Currently only serves translations until we make popover.rs use it -->
 | 
			
		||||
<interface>
 | 
			
		||||
  <requires lib="gtk+" version="3.16"/>
 | 
			
		||||
  <object class="GtkPopoverMenu" id="main_menu">
 | 
			
		||||
    <property name="can_focus">False</property>
 | 
			
		||||
    <child>
 | 
			
		||||
      <object class="GtkBox" id="box">
 | 
			
		||||
        <property name="visible">True</property>
 | 
			
		||||
        <property name="can_focus">False</property>
 | 
			
		||||
        <property name="orientation">vertical</property>
 | 
			
		||||
      </object>
 | 
			
		||||
      <packing>
 | 
			
		||||
        <property name="submenu">main</property>
 | 
			
		||||
        <property name="position">1</property>
 | 
			
		||||
      </packing>
 | 
			
		||||
    </child>
 | 
			
		||||
  </object>
 | 
			
		||||
  <menu>
 | 
			
		||||
    <section>
 | 
			
		||||
      <item>
 | 
			
		||||
        <attribute name="label" translatable="yes">Keyboard Settings</attribute>
 | 
			
		||||
        <attribute name="action">settings</attribute>
 | 
			
		||||
      </item>
 | 
			
		||||
    </section>
 | 
			
		||||
  </menu>
 | 
			
		||||
</interface>
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1
									
								
								debian/squeekboard.install
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								debian/squeekboard.install
									
									
									
									
										vendored
									
									
								
							@ -1,2 +1,3 @@
 | 
			
		||||
tools/squeekboard-restyled usr/bin
 | 
			
		||||
usr/bin/squeekboard /usr/bin
 | 
			
		||||
usr/share/locale/
 | 
			
		||||
 | 
			
		||||
@ -36,8 +36,6 @@ add_project_arguments(
 | 
			
		||||
 | 
			
		||||
i18n = import('i18n')
 | 
			
		||||
 | 
			
		||||
conf_data = configuration_data()
 | 
			
		||||
 | 
			
		||||
if get_option('buildtype').startswith('debug')
 | 
			
		||||
    add_project_arguments('-DDEBUG=1', language : 'c')
 | 
			
		||||
endif
 | 
			
		||||
@ -63,6 +61,7 @@ endif
 | 
			
		||||
prefix = get_option('prefix')
 | 
			
		||||
bindir = join_paths(prefix, get_option('bindir'))
 | 
			
		||||
datadir = join_paths(prefix, get_option('datadir'))
 | 
			
		||||
localedir = join_paths(prefix, get_option('localedir'))
 | 
			
		||||
desktopdir = join_paths(datadir, 'applications')
 | 
			
		||||
pkgdatadir = join_paths(datadir, meson.project_name())
 | 
			
		||||
if get_option('depdatadir') == ''
 | 
			
		||||
@ -72,6 +71,10 @@ else
 | 
			
		||||
endif
 | 
			
		||||
dbusdir = join_paths(depdatadir, 'dbus-1/interfaces')
 | 
			
		||||
 | 
			
		||||
conf_data = configuration_data()
 | 
			
		||||
conf_data.set_quoted('GETTEXT_PACKAGE', 'squeekboard')
 | 
			
		||||
conf_data.set_quoted('LOCALEDIR', localedir)
 | 
			
		||||
 | 
			
		||||
summary = [
 | 
			
		||||
        '',
 | 
			
		||||
        '------------------',
 | 
			
		||||
@ -114,6 +117,7 @@ cargo_script = find_program('cargo.sh')
 | 
			
		||||
cargo_build = find_program('cargo_build.py')
 | 
			
		||||
 | 
			
		||||
subdir('data')
 | 
			
		||||
subdir('po')
 | 
			
		||||
subdir('protocols')
 | 
			
		||||
subdir('src')
 | 
			
		||||
subdir('tools')
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1
									
								
								po/LINGUAS
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								po/LINGUAS
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
de
 | 
			
		||||
							
								
								
									
										1
									
								
								po/POTFILES.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								po/POTFILES.in
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
data/popup.ui
 | 
			
		||||
							
								
								
									
										22
									
								
								po/de.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								po/de.po
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,22 @@
 | 
			
		||||
# German translations for squeekboard package.
 | 
			
		||||
# Copyright (C) 2021 THE squeekboard'S COPYRIGHT HOLDER
 | 
			
		||||
# This file is distributed under the same license as the squeekboard package.
 | 
			
		||||
# Automatically generated, 2021.
 | 
			
		||||
#
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: squeekboard\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: \n"
 | 
			
		||||
"POT-Creation-Date: 2021-12-03 18:41+0100\n"
 | 
			
		||||
"PO-Revision-Date: 2021-12-03 18:41+0100\n"
 | 
			
		||||
"Last-Translator: Automatically generated\n"
 | 
			
		||||
"Language-Team: none\n"
 | 
			
		||||
"Language: de\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"
 | 
			
		||||
 | 
			
		||||
#: data/popup.ui:15
 | 
			
		||||
msgid "Keyboard Settings"
 | 
			
		||||
msgstr "Tastatureinstellungen"
 | 
			
		||||
							
								
								
									
										2
									
								
								po/meson.build
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								po/meson.build
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
i18n = import('i18n')
 | 
			
		||||
i18n.gettext('squeekboard', preset : 'glib')
 | 
			
		||||
@ -2,3 +2,9 @@
 | 
			
		||||
 * Autogenerated by the Meson build system.
 | 
			
		||||
 * Do not edit, your changes will be lost.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#mesondefine GETTEXT_PACKAGE
 | 
			
		||||
 | 
			
		||||
#mesondefine LOCALEDIR
 | 
			
		||||
 | 
			
		||||
@ -326,6 +326,10 @@ main (int argc, char **argv)
 | 
			
		||||
        return 1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    textdomain (GETTEXT_PACKAGE);
 | 
			
		||||
    bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 | 
			
		||||
    bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
 | 
			
		||||
 | 
			
		||||
    if (!gtk_init_check (&argc, &argv)) {
 | 
			
		||||
        g_printerr ("Can't init GTK\n");
 | 
			
		||||
        exit (1);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user