Skip to content

Commit 413cf1e

Browse files
authored
Merge pull request #128 from kmwallio/beta
Fix loading languages
2 parents 213f2fa + 645d5c8 commit 413cf1e

18 files changed

+126
-35
lines changed

com.github.kmwallio.thiefmd.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: com.github.kmwallio.thiefmd
2-
Version: 0.1.7
2+
Version: 0.1.8
33
Release: 1%{?dist}
44
Summary: The markdown editor worth stealing.
55
License: GPL-3.0+
@@ -324,6 +324,8 @@ rm -vf %{buildroot}%{_libdir}/libultheme.a
324324
%postun -p /sbin/ldconfig
325325

326326
%changelog
327+
* Sat Mar 20 2021 kmwallio <[email protected]> - 0.1.8
328+
- Fix translation issues
327329
* Sun Mar 13 2021 kmwallio <[email protected]> - 0.1.7
328330
- Snap.as image upload support
329331
- WordPress featured image support

data/com.github.kmwallio.thiefmd.appdata.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<url type="bugtracker">https://github.com/kmwallio/thiefmd/issues</url>
1818
<url type="help">https://thiefmd.com/deets</url>
1919
<url type="donation">https://github.com/sponsors/kmwallio</url>
20+
<url type="translate">https://poeditor.com/join/project?hash=iQkE5oTIOV</url>
2021
<content_rating type="oars-1.1">
2122
<content_attribute id="language-humor">mild</content_attribute>
2223
</content_rating>
@@ -54,6 +55,15 @@
5455
</screenshot>
5556
</screenshots>
5657
<releases>
58+
<release version="0.1.8" date="2021-03-20" urgency="low">
59+
<description>
60+
<p>Translation loading fixes</p>
61+
<ul>
62+
<li>New Translations available, hopefully for real this time: French, Slovak, and Swedish</li>
63+
</ul>
64+
</description>
65+
<url>https://github.com/kmwallio/ThiefMD/releases/tag/v0.1.8-languages</url>
66+
</release>
5767
<release version="0.1.7" date="2021-03-13" urgency="low">
5868
<description>
5969
<p>The subtle update.</p>

debian/changelog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
com.github.kmwallio.thiefmd (0.1.8) groovy; urgency=low
2+
3+
* Fix translation issues
4+
5+
-- kmwallio <[email protected]> Sat, 20 Mar 2021 14:18:31 -0700
6+
7+
com.github.kmwallio.thiefmd (0.1.7) groovy; urgency=low
8+
9+
* Snap.as image upload support
10+
* WordPress featured image support
11+
* Performance improvements for experimental mode
12+
13+
-- kmwallio <[email protected]> Sat, 13 Mar 2021 15:42:28 -0800
14+
115
com.github.kmwallio.thiefmd (0.1.6) groovy; urgency=low
216

317
* Wordpress Export is now available, just add a Connection

flatpak/com.github.kmwallio.thiefmd.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"buildsystem": "meson",
3434
"sources": [{
3535
"type": "archive",
36-
"url": "https://download.gnome.org/sources/gtksourceview/4.7/gtksourceview-4.7.90.tar.xz",
37-
"sha256": "983bdcb88f98285b3b997c9335057c8fbc45aad0a7c13cb65eb365567e26baaf"
36+
"url": "https://download.gnome.org/sources/gtksourceview/4.8/gtksourceview-4.8.1.tar.xz",
37+
"sha256": "d163d71b5fcafbc5b1eec6dd841edbdbcddd3a7511cd5fdcffd86b8bbfe69ac1"
3838
}]
3939
},
4040
{
@@ -99,8 +99,8 @@
9999
"sources" : [
100100
{
101101
"type": "archive",
102-
"url": "https://download.gnome.org/sources/libhandy/1.0/libhandy-1.0.0.tar.xz",
103-
"sha256": "a9398582f47b7d729205d6eac0c068fef35aaf249fdd57eea3724f8518d26699"
102+
"url": "https://download.gnome.org/sources/libhandy/1.2/libhandy-1.2.0.tar.xz",
103+
"sha256": "39f590ae20910e76fe1c0607b2ebe589750f45610d6aeec5c30e2ee602a20b25"
104104
}
105105
]
106106
},

meson.build

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Name our project
22
project('com.github.kmwallio.thiefmd', ['vala', 'c'],
3-
version: '0.1.7'
3+
version: '0.1.8'
44
)
55

66
# Application ID
@@ -21,6 +21,10 @@ asresources = gnome.compile_resources(
2121
c_name: 'as'
2222
)
2323

24+
# Translations
25+
gettext_package = meson.project_name()
26+
podir = meson.source_root() / 'po'
27+
2428
# Set this for convenience
2529
conf = configuration_data()
2630

@@ -34,23 +38,20 @@ conf.set_quoted('PKGDATADIR', pkgdatadir)
3438
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
3539
conf.set_quoted('RELEASE_NAME', thief_app_id)
3640
conf.set_quoted('VERSION', meson.project_version())
41+
conf.set_quoted('PACKAGE_LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
3742
add_global_arguments('-DDATADIR="' + get_option('datadir') + '"', language: 'c')
3843
configure_file(output: 'config.h', configuration: conf)
3944
config_h_dir = include_directories('.')
4045

4146
# Arguments for C
4247
c_args = [
4348
'-include', 'config.h',
49+
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
4450
'-w'
4551
]
4652

4753
cc = meson.get_compiler('c')
4854

49-
# Translations
50-
gettext_package = meson.project_name()
51-
localedir = get_option('prefix') / get_option('localedir')
52-
podir = meson.source_root() / 'po'
53-
5455
# Find libMarkdown
5556
libmarkdown = dependency('libmarkdown', version: '>= 2.2.1', required: false)
5657
if libmarkdown.found() == false

po/POTFILES.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ src/Controllers/ConnectionManager.vala
1515
src/Connections/ConnectionBase.vala
1616
src/Connections/WriteFreelyConnection.vala
1717
src/Connections/GhostConnection.vala
18+
src/Connections/WordpressConnection.vala
1819
src/Exporters/ExportBase.vala
1920
src/Exporters/ExportDocx.vala
2021
src/Exporters/ExportEpub.vala
@@ -53,4 +54,5 @@ src/writegood/src/language.vala
5354
src/writegood/src/writegood.vala
5455
src/writegood/src/en_us.vala
5556
src/writeas/src/Writeas.vala
56-
src/ghost/src/Ghost.vala
57+
src/ghost/src/Ghost.vala
58+
src/wordpress/src/Wordpress.vala

po/com.github.kmwallio.thiefmd.pot

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: com.github.kmwallio.thiefmd\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-03-13 13:43-0800\n"
11+
"POT-Creation-Date: 2021-03-14 07:26-0700\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -82,6 +82,7 @@ msgstr ""
8282
#: src/Controllers/Dialogs.vala:27 src/Controllers/Dialogs.vala:55
8383
#: src/Connections/WriteFreelyConnection.vala:129
8484
#: src/Connections/GhostConnection.vala:111
85+
#: src/Connections/WordpressConnection.vala:114
8586
msgid "_Cancel"
8687
msgstr ""
8788

@@ -170,37 +171,44 @@ msgid "Close"
170171
msgstr ""
171172

172173
#: src/Connections/WriteFreelyConnection.vala:100
174+
#: src/Connections/WordpressConnection.vala:85
173175
msgid "Username"
174176
msgstr ""
175177

176178
#: src/Connections/WriteFreelyConnection.vala:104
177179
#: src/Connections/GhostConnection.vala:86
180+
#: src/Connections/WordpressConnection.vala:89
178181
msgid "Password"
179182
msgstr ""
180183

181184
#: src/Connections/WriteFreelyConnection.vala:109
182185
#: src/Connections/GhostConnection.vala:91
186+
#: src/Connections/WordpressConnection.vala:94
183187
msgid "Endpoint"
184188
msgstr ""
185189

186190
#: src/Connections/WriteFreelyConnection.vala:127
187191
#: src/Connections/GhostConnection.vala:109
192+
#: src/Connections/WordpressConnection.vala:112
188193
msgid "_Add Account"
189194
msgstr ""
190195

191196
#: src/Connections/WriteFreelyConnection.vala:230
192197
#: src/Connections/GhostConnection.vala:214
198+
#: src/Connections/WordpressConnection.vala:216
193199
msgid "Uploading images"
194200
msgstr ""
195201

196202
#: src/Connections/WriteFreelyConnection.vala:308
197-
#: src/Connections/GhostConnection.vala:299 src/Widgets/Preferences.vala:83
203+
#: src/Connections/GhostConnection.vala:299
204+
#: src/Connections/WordpressConnection.vala:300 src/Widgets/Preferences.vala:83
198205
#: src/Widgets/Preferences.vala:117 src/Widgets/Preferences.vala:151
199206
msgid " Published"
200207
msgstr ""
201208

202209
#: src/Connections/WriteFreelyConnection.vala:308
203-
#: src/Connections/GhostConnection.vala:299 src/Widgets/Preferences.vala:83
210+
#: src/Connections/GhostConnection.vala:299
211+
#: src/Connections/WordpressConnection.vala:300 src/Widgets/Preferences.vala:83
204212
#: src/Widgets/Preferences.vala:117 src/Widgets/Preferences.vala:151
205213
msgid "Post Published"
206214
msgstr ""

po/en_GB.po

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: ThiefMD\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2021-03-13 13:43-0800\n"
5+
"POT-Creation-Date: 2021-03-14 07:26-0700\n"
66
"Language: en\n"
77
"MIME-Version: 1.0\n"
88
"Content-Type: text/plain; charset=UTF-8\n"
@@ -82,6 +82,7 @@ msgstr "Save"
8282
#: src/Controllers/Dialogs.vala:27 src/Controllers/Dialogs.vala:55
8383
#: src/Connections/WriteFreelyConnection.vala:129
8484
#: src/Connections/GhostConnection.vala:111
85+
#: src/Connections/WordpressConnection.vala:114
8586
msgid "_Cancel"
8687
msgstr "Cancel"
8788

@@ -170,37 +171,44 @@ msgid "Close"
170171
msgstr "Close"
171172

172173
#: src/Connections/WriteFreelyConnection.vala:100
174+
#: src/Connections/WordpressConnection.vala:85
173175
msgid "Username"
174176
msgstr "Username"
175177

176178
#: src/Connections/WriteFreelyConnection.vala:104
177179
#: src/Connections/GhostConnection.vala:86
180+
#: src/Connections/WordpressConnection.vala:89
178181
msgid "Password"
179182
msgstr "Password"
180183

181184
#: src/Connections/WriteFreelyConnection.vala:109
182185
#: src/Connections/GhostConnection.vala:91
186+
#: src/Connections/WordpressConnection.vala:94
183187
msgid "Endpoint"
184188
msgstr "Endpoint"
185189

186190
#: src/Connections/WriteFreelyConnection.vala:127
187191
#: src/Connections/GhostConnection.vala:109
192+
#: src/Connections/WordpressConnection.vala:112
188193
msgid "_Add Account"
189194
msgstr "Add Account"
190195

191196
#: src/Connections/WriteFreelyConnection.vala:230
192197
#: src/Connections/GhostConnection.vala:214
198+
#: src/Connections/WordpressConnection.vala:216
193199
msgid "Uploading images"
194200
msgstr "Uploading Images"
195201

196202
#: src/Connections/WriteFreelyConnection.vala:308
197-
#: src/Connections/GhostConnection.vala:299 src/Widgets/Preferences.vala:83
203+
#: src/Connections/GhostConnection.vala:299
204+
#: src/Connections/WordpressConnection.vala:300 src/Widgets/Preferences.vala:83
198205
#: src/Widgets/Preferences.vala:117 src/Widgets/Preferences.vala:151
199206
msgid " Published"
200207
msgstr " Published"
201208

202209
#: src/Connections/WriteFreelyConnection.vala:308
203-
#: src/Connections/GhostConnection.vala:299 src/Widgets/Preferences.vala:83
210+
#: src/Connections/GhostConnection.vala:299
211+
#: src/Connections/WordpressConnection.vala:300 src/Widgets/Preferences.vala:83
204212
#: src/Widgets/Preferences.vala:117 src/Widgets/Preferences.vala:151
205213
msgid "Post Published"
206214
msgstr "Post Published"

po/es.po

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: ThiefMD\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2021-03-13 13:43-0800\n"
5+
"POT-Creation-Date: 2021-03-14 07:26-0700\n"
66
"Language: es\n"
77
"MIME-Version: 1.0\n"
88
"Content-Type: text/plain; charset=UTF-8\n"
@@ -74,6 +74,7 @@ msgstr "_Salvar"
7474
#: src/Controllers/Dialogs.vala:27 src/Controllers/Dialogs.vala:55
7575
#: src/Connections/WriteFreelyConnection.vala:129
7676
#: src/Connections/GhostConnection.vala:111
77+
#: src/Connections/WordpressConnection.vala:114
7778
msgid "_Cancel"
7879
msgstr "_Cancelar"
7980

@@ -162,37 +163,44 @@ msgid "Close"
162163
msgstr "Cerrar"
163164

164165
#: src/Connections/WriteFreelyConnection.vala:100
166+
#: src/Connections/WordpressConnection.vala:85
165167
msgid "Username"
166168
msgstr "Nombre de usuario"
167169

168170
#: src/Connections/WriteFreelyConnection.vala:104
169171
#: src/Connections/GhostConnection.vala:86
172+
#: src/Connections/WordpressConnection.vala:89
170173
msgid "Password"
171174
msgstr "Contraseña"
172175

173176
#: src/Connections/WriteFreelyConnection.vala:109
174177
#: src/Connections/GhostConnection.vala:91
178+
#: src/Connections/WordpressConnection.vala:94
175179
msgid "Endpoint"
176180
msgstr "Punto final"
177181

178182
#: src/Connections/WriteFreelyConnection.vala:127
179183
#: src/Connections/GhostConnection.vala:109
184+
#: src/Connections/WordpressConnection.vala:112
180185
msgid "_Add Account"
181186
msgstr "_Añadir cuenta"
182187

183188
#: src/Connections/WriteFreelyConnection.vala:230
184189
#: src/Connections/GhostConnection.vala:214
190+
#: src/Connections/WordpressConnection.vala:216
185191
msgid "Uploading images"
186192
msgstr "Subiendo imágenes"
187193

188194
#: src/Connections/WriteFreelyConnection.vala:308
189-
#: src/Connections/GhostConnection.vala:299 src/Widgets/Preferences.vala:83
195+
#: src/Connections/GhostConnection.vala:299
196+
#: src/Connections/WordpressConnection.vala:300 src/Widgets/Preferences.vala:83
190197
#: src/Widgets/Preferences.vala:117 src/Widgets/Preferences.vala:151
191198
msgid " Published"
192199
msgstr " Publicado"
193200

194201
#: src/Connections/WriteFreelyConnection.vala:308
195-
#: src/Connections/GhostConnection.vala:299 src/Widgets/Preferences.vala:83
202+
#: src/Connections/GhostConnection.vala:299
203+
#: src/Connections/WordpressConnection.vala:300 src/Widgets/Preferences.vala:83
196204
#: src/Widgets/Preferences.vala:117 src/Widgets/Preferences.vala:151
197205
msgid "Post Published"
198206
msgstr "Publicación publicada"

po/fr.po

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: ThiefMD\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2021-03-13 13:43-0800\n"
5+
"POT-Creation-Date: 2021-03-14 07:26-0700\n"
66
"Language: fr\n"
77
"MIME-Version: 1.0\n"
88
"Content-Type: text/plain; charset=UTF-8\n"
@@ -82,6 +82,7 @@ msgstr "_Sauvegarder"
8282
#: src/Controllers/Dialogs.vala:27 src/Controllers/Dialogs.vala:55
8383
#: src/Connections/WriteFreelyConnection.vala:129
8484
#: src/Connections/GhostConnection.vala:111
85+
#: src/Connections/WordpressConnection.vala:114
8586
msgid "_Cancel"
8687
msgstr "_Annuler"
8788

@@ -173,37 +174,44 @@ msgid "Close"
173174
msgstr "Fermer"
174175

175176
#: src/Connections/WriteFreelyConnection.vala:100
177+
#: src/Connections/WordpressConnection.vala:85
176178
msgid "Username"
177179
msgstr "Nom d'utilisateur"
178180

179181
#: src/Connections/WriteFreelyConnection.vala:104
180182
#: src/Connections/GhostConnection.vala:86
183+
#: src/Connections/WordpressConnection.vala:89
181184
msgid "Password"
182185
msgstr "Mot de passe"
183186

184187
#: src/Connections/WriteFreelyConnection.vala:109
185188
#: src/Connections/GhostConnection.vala:91
189+
#: src/Connections/WordpressConnection.vala:94
186190
msgid "Endpoint"
187191
msgstr "URL"
188192

189193
#: src/Connections/WriteFreelyConnection.vala:127
190194
#: src/Connections/GhostConnection.vala:109
195+
#: src/Connections/WordpressConnection.vala:112
191196
msgid "_Add Account"
192197
msgstr "A_jouter un compte"
193198

194199
#: src/Connections/WriteFreelyConnection.vala:230
195200
#: src/Connections/GhostConnection.vala:214
201+
#: src/Connections/WordpressConnection.vala:216
196202
msgid "Uploading images"
197203
msgstr "Chargement des images"
198204

199205
#: src/Connections/WriteFreelyConnection.vala:308
200-
#: src/Connections/GhostConnection.vala:299 src/Widgets/Preferences.vala:83
206+
#: src/Connections/GhostConnection.vala:299
207+
#: src/Connections/WordpressConnection.vala:300 src/Widgets/Preferences.vala:83
201208
#: src/Widgets/Preferences.vala:117 src/Widgets/Preferences.vala:151
202209
msgid " Published"
203210
msgstr " Publié"
204211

205212
#: src/Connections/WriteFreelyConnection.vala:308
206-
#: src/Connections/GhostConnection.vala:299 src/Widgets/Preferences.vala:83
213+
#: src/Connections/GhostConnection.vala:299
214+
#: src/Connections/WordpressConnection.vala:300 src/Widgets/Preferences.vala:83
207215
#: src/Widgets/Preferences.vala:117 src/Widgets/Preferences.vala:151
208216
msgid "Post Published"
209217
msgstr "Article Publié"

0 commit comments

Comments
 (0)