Skip to content

Commit

Permalink
Add localization (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Jan 30, 2024
1 parent 70d68b3 commit 3b09fb5
Show file tree
Hide file tree
Showing 6 changed files with 154 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Gettext Updates
on:
push:
branches: main
jobs:
gettext_template:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: elementary/actions/gettext-template@master
env:
GIT_USER_TOKEN: "${{ secrets.GIT_USER_TOKEN }}"
GIT_USER_NAME: "elementaryBot"
GIT_USER_EMAIL: "[email protected]"
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ project(
)

gnome = import('gnome')
i18n = import('i18n')
prefix = get_option('prefix')
libdir = prefix / get_option('libdir')
datadir = prefix / get_option('datadir')
Expand All @@ -21,6 +22,7 @@ wingpanel_dep = dependency('wingpanel')
wingpanel_indicatorsdir = wingpanel_dep.get_pkgconfig_variable('indicatorsdir', define_variable: ['libdir', libdir])

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

gnome.post_install(glib_compile_schemas: true)
Empty file added po/LINGUAS
Empty file.
14 changes: 14 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
src/Indicator.vala
src/PopoverWidget.vala
src/DBus/AccountsService.vala
src/DBus/EndSessionDialogServer.vala
src/DBus/LockInterface.vala
src/DBus/SensorProxy.vala
src/DBus/SessionInterface.vala
src/DBus/SystemInterface.vala
src/Views/A11yView.vala
src/Widgets/DarkModeToggle.vala
src/Widgets/EndSessionDialog.vala
src/Widgets/RotationToggle.vala
src/Widgets/SessionBox.vala
src/Widgets/SettingsToggle.vala
120 changes: 120 additions & 0 deletions po/io.elementary.quick-settings.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the io.elementary.quick-settings package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: io.elementary.quick-settings\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-29 17:33-0800\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=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: src/PopoverWidget.vala:29
msgid "System Settings…"
msgstr ""

#: src/PopoverWidget.vala:36
msgid "Accessiblity Settings…"
msgstr ""

#: src/Views/A11yView.vala:12
msgid "Back"
msgstr ""

#: src/Views/A11yView.vala:18
msgid "Decrease text size"
msgstr ""

#: src/Views/A11yView.vala:31
msgid "Increase text size"
msgstr ""

#: src/Views/A11yView.vala:36
msgid "Screen Reader"
msgstr ""

#: src/Views/A11yView.vala:43
msgid "Onscreen Keyboard"
msgstr ""

#: src/Views/A11yView.vala:61
msgid "Slow Keys"
msgstr ""

#: src/Views/A11yView.vala:63
msgid "Bounce Keys"
msgstr ""

#: src/Views/A11yView.vala:65
msgid "Sticky Keys"
msgstr ""

#: src/Views/A11yView.vala:67
msgid "Dwell Click"
msgstr ""

#: src/Widgets/DarkModeToggle.vala:13
msgid "Dark Mode"
msgstr ""

#: src/Widgets/EndSessionDialog.vala:35
msgid "Are you sure you want to Log Out?"
msgstr ""

#: src/Widgets/EndSessionDialog.vala:36
msgid "This will close all open applications."
msgstr ""

#: src/Widgets/EndSessionDialog.vala:37
msgid "Log Out"
msgstr ""

#: src/Widgets/EndSessionDialog.vala:42
msgid "Are you sure you want to Shut Down?"
msgstr ""

#: src/Widgets/EndSessionDialog.vala:43
msgid "This will close all open applications and turn off this device."
msgstr ""

#: src/Widgets/EndSessionDialog.vala:44
msgid "Shut Down"
msgstr ""

#: src/Widgets/EndSessionDialog.vala:69
msgid "Cancel"
msgstr ""

#: src/Widgets/EndSessionDialog.vala:86
msgid "Restart"
msgstr ""

#: src/Widgets/RotationToggle.vala:10
msgid "Rotation Lock"
msgstr ""

#: src/Widgets/SessionBox.vala:19 src/Widgets/SessionBox.vala:134
#: src/Widgets/SessionBox.vala:142
msgid "Log Out…"
msgstr ""

#: src/Widgets/SessionBox.vala:24
msgid "Suspend"
msgstr ""

#: src/Widgets/SessionBox.vala:29 src/Widgets/SessionBox.vala:137
#: src/Widgets/SessionBox.vala:148
msgid "Lock"
msgstr ""

#: src/Widgets/SessionBox.vala:34
msgid "Shut Down…"
msgstr ""
4 changes: 4 additions & 0 deletions po/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
i18n.gettext(meson.project_name(),
args: '--directory=' + meson.project_source_root(),
preset: 'glib'
)

0 comments on commit 3b09fb5

Please sign in to comment.