Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Jun 1, 2023
1 parent 4b98043 commit e815b19
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 12 deletions.
6 changes: 3 additions & 3 deletions alexandria.desktop.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[Desktop Entry]
Version=1.0
Type=Application
_Name=Alexandria Book Collection Manager
_GenericName=Book Collection Manager
_Comment=Manage your book collection
Name=Alexandria Book Collection Manager
GenericName=Book Collection Manager
Comment=Manage your book collection
Exec=/usr/bin/alexandria
Terminal=false
Categories=GNOME;GTK;Office;Database;
Expand Down
22 changes: 22 additions & 0 deletions po/LINGUAS
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Set of available languages.
cs
cy
de
el
es
fr
ga
gl
it
ja
mk
nb
nl
pl
pt
pt_BR
ru
sk
sv
uk
zh_TW
10 changes: 7 additions & 3 deletions po/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -1354,18 +1354,22 @@ msgstr "_Sinds:"
msgid "Loaning"
msgstr "Uitlenen"

#: ../alexandria.desktop.in.h:1
#: ../alexandria.desktop:5
msgid "Alexandria Book Collection Manager"
msgstr "Alexandria Boekcollectiebeheerder"

#: ../alexandria.desktop.in.h:2
#: ../alexandria.desktop:6
msgid "Book Collection Manager"
msgstr "Boekcollectiebeheerder"

#: ../alexandria.desktop.in.h:3
#: ../alexandria.desktop:7
msgid "Manage your book collection"
msgstr "Beheer uw boekcollectie"

#: ../alexandria.desktop:11
msgid "alexandria"
msgstr ""

#~ msgid "Locale"
#~ msgstr "Taal"

Expand Down
8 changes: 2 additions & 6 deletions util/rake/gettextgenerate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,8 @@ def po_files
def generate_desktop(infile, outfile)
@generated_files << outfile
file outfile => [infile, *po_files] do |_f|
begin
`intltool-merge --version`
rescue Errno::ENOENT
raise "Need to install intltool"
end
system("intltool-merge -d #{@po_dir} #{infile} #{outfile}")
result = system("msgfmt --desktop --template #{infile} -d #{@po_dir} -o #{outfile}")
raise "msgfmt failed for #{infile}" unless result
end
end

Expand Down

0 comments on commit e815b19

Please sign in to comment.