Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translations #18

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

# EditorConfig <https://EditorConfig.org>
root = true

# elementary defaults
[*]
charset = utf-8
end_of_line = lf
indent_size = tab
indent_style = space
insert_final_newline = true
max_line_length = 80
tab_width = 4

# Markup files
[{*.html,*.xml,*.xml.in,*.yml}]
tab_width = 2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<summary>Beautify your oddly-sized wallpapers</summary>
<description>
<p>
Turn your oddly sized wallpapers into a piece of beauty. Simply right click on your picture's file, and select "Wallpaperize" from the drop down menu, or open the app and drag-and-drop the images you wish to wallpaperize.
Turn your oddly sized wallpapers into a piece of beauty. Simply right click on your picture's file, and select "Wallpaperize" from the context menu, or open the app and drag-and-drop the images you wish to wallpaperize.
</p>
</description>
<provides>
Expand Down
32 changes: 17 additions & 15 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
icon_sizes = ['24', '32', '48', '64', '128']
icon_sizes = ['16', '24', '32', '48', '64', '128']

foreach i : icon_sizes
install_data(
join_paths('icons', i, meson.project_name() + '.svg'),
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps')
join_paths('icons', i, meson.project_name() + '.svg'),
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps')
)
endforeach

install_data(
meson.project_name() + '.desktop',
install_dir: join_paths(get_option('datadir'), 'applications')
)

install_data(
meson.project_name() + '.appdata.xml',
install_dir: join_paths(get_option('datadir'), 'metainfo')
i18n.merge_file(
input: meson.project_name() + '.desktop.in',
output: meson.project_name() + '.desktop',
po_dir: join_paths(meson.source_root(), 'po', 'extra'),
type: 'desktop',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)

install_data(
meson.project_name() + '.contract',
install_dir: join_paths(get_option('datadir'), 'contractor')
)
i18n.merge_file(
input: meson.project_name() + '.appdata.xml.in',
output: meson.project_name() + '.appdata.xml',
po_dir: join_paths(meson.source_root(), 'po', 'extra'),
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo')
)
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ executable(
)

subdir('data')
subdir('po')
1 change: 1 addition & 0 deletions po/LINGUAS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fr
1 change: 1 addition & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/Window.vala
46 changes: 46 additions & 0 deletions po/com.github.philip-scott.wallpaperize.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the com.github.philip-scott.wallpaperize package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: com.github.philip-scott.wallpaperize\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-01-26 15:21+0100\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"

#: src/Window.vala:62 src/Window.vala:145
msgid "Wallpaperize!"
msgstr ""

#: src/Window.vala:102
msgid "Drop Image Here"
msgstr ""

#: src/Window.vala:119
msgid "Width"
msgstr ""

#: src/Window.vala:120
msgid "Height"
msgstr ""

#: src/Window.vala:134
msgid "Get resolution"
msgstr ""

#: src/Window.vala:144
msgid "Cancel"
msgstr ""

#: src/Window.vala:164
msgid "Done"
msgstr ""
1 change: 1 addition & 0 deletions po/extra/LINGUAS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fr
2 changes: 2 additions & 0 deletions po/extra/POTFILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data/com.github.philip-scott.wallpaperize.desktop.in
data/com.github.philip-scott.wallpaperize.appdata.xml.in
55 changes: 55 additions & 0 deletions po/extra/extra.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the extra package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: extra\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-01-26 15:21+0100\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"

#: data/com.github.philip-scott.wallpaperize.desktop.in:3
#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:7
msgid "Wallpaperize"
msgstr ""

#: data/com.github.philip-scott.wallpaperize.desktop.in:4
#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:8
msgid "Beautify your oddly-sized wallpapers"
msgstr ""

#: data/com.github.philip-scott.wallpaperize.desktop.in:6
msgid "com.github.philip-scott.wallpaperize"
msgstr ""

#: data/com.github.philip-scott.wallpaperize.desktop.in:15
msgid "About Wallpaperize"
msgstr ""

#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:10
msgid ""
"Turn your oddly sized wallpapers into a piece of beauty. Simply right click "
"on your picture's file, and select \"Wallpaperize\" from the context menu, "
"or open the app and drag-and-drop the images you wish to wallpaperize."
msgstr ""

#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:20
msgid "Juno Release"
msgstr ""

#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:22
msgid "Wallpaperize is now available in elementary OS Juno!"
msgstr ""

#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:32
msgid "Felipe Escoto"
msgstr ""
59 changes: 59 additions & 0 deletions po/extra/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# French translations for extra package.
# Copyright (C) 2019 THE extra'S COPYRIGHT HOLDER
# This file is distributed under the same license as the extra package.
# Nathan Bonnemains (@NathanBnm), 2019.
#
msgid ""
msgstr ""
"Project-Id-Version: extra\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-01-26 15:21+0100\n"
"PO-Revision-Date: 2019-04-02 14:10+0200\n"
"Last-Translator: Nathan Bonnemains (@NathanBnm)\n"
"Language-Team: Français\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#: data/com.github.philip-scott.wallpaperize.desktop.in:3
#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:7
msgid "Wallpaperize"
msgstr "Wallpaperize"

#: data/com.github.philip-scott.wallpaperize.desktop.in:4
#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:8
msgid "Beautify your oddly-sized wallpapers"
msgstr "Embellissez vos fonds d'écran aux dimensions inadaptées"

#: data/com.github.philip-scott.wallpaperize.desktop.in:6
msgid "com.github.philip-scott.wallpaperize"
msgstr "com.github.philip-scott.wallpaperize"

#: data/com.github.philip-scott.wallpaperize.desktop.in:15
msgid "About Wallpaperize"
msgstr "À propos de Wallpaperize"

#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:10
msgid ""
"Turn your oddly sized wallpapers into a piece of beauty. Simply right click "
"on your picture's file, and select \"Wallpaperize\" from the context menu, "
"or open the app and drag-and-drop the images you wish to wallpaperize."
msgstr ""
"Transformez vos fonds d'écran aux dimensions inadaptées en quelque chose de "
"beau. Faites simplement un clic droit sur votre fichier d'image, puis "
"sélectionnez « Wallpaperize » depuis le menu contextuel, ou bien ouvrez "
"l'application et glissez-déposez les images que vous voulez ajuster."

#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:20
msgid "Juno Release"
msgstr "Version pour Juno"

#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:22
msgid "Wallpaperize is now available in elementary OS Juno!"
msgstr "Wallpaperize est maintenant disponible pour elementary OS Juno !"

#: data/com.github.philip-scott.wallpaperize.appdata.xml.in:32
msgid "Felipe Escoto"
msgstr "Felipe Escoto"
7 changes: 7 additions & 0 deletions po/extra/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
i18n.gettext('extra',
args: [
'--directory=' + meson.source_root(),
'--from-code=UTF-8'
],
install: false
)
46 changes: 46 additions & 0 deletions po/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# French translations for com.github.philip-scott.wallpaperize package.
# Copyright (C) 2019 THE com.github.philip-scott.wallpaperize'S COPYRIGHT HOLDER
# This file is distributed under the same license as the com.github.philip-scott.wallpaperize package.
# Nathan Bonnemains (@NathanBnm), 2019.
#
msgid ""
msgstr ""
"Project-Id-Version: com.github.philip-scott.wallpaperize\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-01-26 15:21+0100\n"
"PO-Revision-Date: 2019-04-02 14:10+0200\n"
"Last-Translator: Nathan Bonnemains (@NathanBnm)\n"
"Language-Team: Français\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#: src/Window.vala:62 src/Window.vala:145
msgid "Wallpaperize!"
msgstr "Wallpaperize !"

#: src/Window.vala:102
msgid "Drop Image Here"
msgstr "Déposez une image ici"

#: src/Window.vala:119
msgid "Width"
msgstr "Largeur"

#: src/Window.vala:120
msgid "Height"
msgstr "Hauteur"

#: src/Window.vala:134
msgid "Get resolution"
msgstr "Obtenir la résolution"

#: src/Window.vala:144
msgid "Cancel"
msgstr "Annuler"

#: src/Window.vala:164
msgid "Done"
msgstr "Terminé"
8 changes: 8 additions & 0 deletions po/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
i18n.gettext(meson.project_name(),
args: [
'--directory=' + meson.source_root(),
'--from-code=UTF-8'
]
)

subdir('extra')