Skip to content

Commit

Permalink
Merge pull request hongquan#82 from sabriunal/update-tr
Browse files Browse the repository at this point in the history
Translation related patches
  • Loading branch information
hongquan authored Jan 12, 2024
2 parents 7a79a9b + ae99a5e commit da3daf9
Show file tree
Hide file tree
Showing 17 changed files with 305 additions and 1,243 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log
Expand Down
33 changes: 20 additions & 13 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,40 @@ install_data(['cobang-resp.glade', 'about.glade', 'url-display.glade', 'wifi-dis
install_dir: get_option('datadir') / meson.project_name()
)


desktop_file = files('vn.hoabinh.quan.CoBang.desktop')
desktop_file = i18n.merge_file(
input: 'vn.hoabinh.quan.CoBang.desktop.in',
output: 'vn.hoabinh.quan.CoBang.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)

desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils,
args: [desktop_file]
)
install_data(desktop_file,
install_dir: get_option('datadir') / 'applications'
)
endif

themedir = get_option('datadir') / 'icons/hicolor'
install_data('vn.hoabinh.quan.CoBang.svg',
install_dir: themedir / 'scalable/apps'
)

appstream_file = files('vn.hoabinh.quan.CoBang.appdata.xml')
appstream_file = i18n.merge_file(
input: 'vn.hoabinh.quan.CoBang.appdata.xml.in',
output: 'vn.hoabinh.quan.CoBang.appdata.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo')
)

appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('Validate appstream file', appstream_util,
args: ['validate-relax', appstream_file]
)
install_data(appstream_file,
install_dir: get_option('datadir') / 'metainfo'
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test('Validate appstream file', appstreamcli,
args: ['validate', '--no-net', '--explain', appstream_file],
workdir: meson.current_build_dir()
)
endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<component type="desktop">
<id>vn.hoabinh.quan.CoBang</id>
<launchable type="desktop-id">vn.hoabinh.quan.CoBang.desktop</launchable>
<translation type="gettext">cobang</translation>

<metadata_license>MIT</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
Expand Down Expand Up @@ -32,6 +33,8 @@
</screenshots>
<url type="homepage">https://github.com/hongquan/CoBang</url>
<url type="bugtracker">https://github.com/hongquan/CoBang/issues</url>
<url type="vcs-browser">https://github.com/hongquan/CoBang</url>
<url type="translate">https://github.com/hongquan/CoBang/tree/main/po</url>
<developer_name>Nguyễn Hồng Quân</developer_name>
<update_contact>ng.hong.quan_AT_gmail.com</update_contact>
<kudos>
Expand All @@ -41,185 +44,185 @@

<releases>
<release version="0.10.4" date="2024-01-04" urgency="medium">
<description>
<description translatable="no">
<p>Upgrade Python packages for Flatpak</p>
</description>
</release>
<release version="0.10.3" date="2023-12-27" urgency="medium">
<description>
<description translatable="no">
<p>Try Gnome v45 for Flatpak.</p>
</description>
</release>
<release version="0.10.2" date="2023-12-09" urgency="medium">
<description>
<description translatable="no">
<p>Upgrade Gnome runtime for Flatpak.</p>
</description>
</release>
<release version="0.10.1" date="2023-04-26" urgency="medium">
<description>
<description translatable="no">
<p>Fix building for Flatpak.</p>
</description>
</release>
<release version="0.10.0" date="2023-04-26" urgency="medium">
<description>
<description translatable="no">
<p>Add French translation.</p>
<p>Increase opacity for Play &amp; Pause buttons.</p>
</description>
</release>
<release version="0.9.10" date="2023-01-05" urgency="medium">
<description>
<description translatable="no">
<p>Use right image of Lepironia articulata.</p>
</description>
</release>
<release version="0.9.9" date="2022-12-29" urgency="medium">
<description>
<description translatable="no">
<p>Upgrade runtime for Flatpak.</p>
<p>Fix typos</p>
</description>
</release>
<release version="0.9.8" date="2022-10-13" urgency="medium">
<description>
<description translatable="no">
<p>Increase displayed wifi password length.</p>
</description>
</release>
<release version="0.9.7" date="2022-08-30" urgency="medium">
<description>
<description translatable="no">
<p>Add Turkish translation.</p>
</description>
</release>
<release version="0.9.6" date="2021-12-08" urgency="medium">
<description>
<description translatable="no">
<p>Fix building Flatpak for v0.9+.</p>
</description>
</release>
<release version="0.9.5" date="2021-11-06" urgency="medium">
<description>
<description translatable="no">
<p>Try to fix crash on displaying wifi result.</p>
</description>
</release>
<release version="0.9.4" date="2021-09-14" urgency="medium">
<description>
<description translatable="no">
<p>Fix overflow UI in phone screen.</p>
</description>
</release>
<release version="0.9.3" date="2021-09-12" urgency="medium">
<description>
<description translatable="no">
<p>Automatically choose the best layout for the screen.</p>
</description>
</release>
<release version="0.9.2" date="2021-09-11" urgency="medium">
<description>
<description translatable="no">
<p>Reduce scrolling on mobile screen.</p>
</description>
</release>
<release version="0.9.1" date="2021-09-09" urgency="medium">
<description>
<description translatable="no">
<p>Prevent redundant empty space.</p>
</description>
</release>
<release version="0.9.0" date="2021-09-07" urgency="medium">
<description>
<description translatable="no">
<p>Support mobile view with responsive UI.</p>
</description>
</release>
<release version="0.8.3" date="2021-08-18" urgency="medium">
<description>
<description translatable="no">
<p>Update Italian translation.</p>
</description>
</release>
<release version="0.8.2" date="2021-07-31" urgency="medium">
<description>
<description translatable="no">
<p>Lower down Meson version requirement.</p>
</description>
</release>
<release version="0.8.1" date="2021-07-03" urgency="medium">
<description>
<description translatable="no">
<p>Fix licensing.</p>
</description>
</release>
<release version="0.8.0" date="2021-03-07" urgency="medium">
<description>
<description translatable="no">
<p>Let play webcam from PipeWire.</p>
</description>
</release>
<release version="0.7.0" date="2021-03-06" urgency="medium">
<description>
<description translatable="no">
<p>Add button to copy raw result.</p>
</description>
</release>
<release version="0.6.4" date="2021-03-06" urgency="medium">
<description>
<description translatable="no">
<p>Fix appdata file.</p>
</description>
</release>
<release version="0.6.3" date="2021-03-06" urgency="medium">
<description>
<description translatable="no">
<p>Support more languages.</p>
</description>
</release>
<release version="0.6.0" date="2020-10-26" urgency="medium">
<description>
<description translatable="no">
<p>Compatible with GStreamer v1.18.</p>
</description>
</release>
<release version="0.5.6" date="2020-06-27" urgency="medium">
<description>
<description translatable="no">
<p>Fix handling HTTP file in some unusual case.</p>
</description>
</release>
<release version="0.5.5" date="2020-06-24" urgency="medium">
<description>
<description translatable="no">
<p>Fix AppStream data.</p>
</description>
</release>
<release version="0.5.4" date="2020-06-24" urgency="medium">
<description>
<description translatable="no">
<p>Move Play &amp; Pause buttons to overlay.</p>
</description>
</release>
<release version="0.5.3" date="2020-06-23" urgency="medium">
<description>
<description translatable="no">
<p>Fix missing files when building Flatpak.</p>
</description>
</release>
<release version="0.5.2" date="2020-06-22" urgency="medium">
<description>
<description translatable="no">
<p>Able to build Flatpak (successfully add NetworkManager dependency).</p>
</description>
</release>
<release version="0.5.1" date="2020-06-20" urgency="medium">
<description>
<description translatable="no">
<p>Fix crash when detecting WiFi content from webcam.</p>
<p>Fix: Forgot to check SVG in some cases.</p>
</description>
</release>
<release version="0.5.0" date="2020-06-19" urgency="medium">
<description>
<description translatable="no">
<p>Display result URL with a link.</p>
<p>Display result WiFi info and let save it to NetworkManager.</p>
<p>Support scanning from SVG file.</p>
<p>Change license to GPL-v3.</p>
</description>
</release>
<release version="0.4.0" date="2020-06-07" urgency="medium">
<description>
<description translatable="no">
<p>Release on FlatHub.</p>
<p>Test and verify to work on X11-based DEs like KDE, Xfce, LxQt.</p>
</description>
</release>
<release version="0.3.2" date="2020-06-07" urgency="medium">
<description>
<description translatable="no">
<p>Fix to work on non-OpenGL environment.</p>
<p>Support PipeWire.</p>
</description>
</release>
<release version="0.3.0" date="2020-06-04" urgency="medium">
<description>
<description translatable="no">
<p>Let drag, drop and paste image</p>
</description>
</release>
<release version="0.2.0" date="2020-06-01" urgency="medium">
<description>
<description translatable="no">
<p>Drop Cheese dependency</p>
</description>
</release>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
[Desktop Entry]
Encoding=UTF-8

Name=CoBang
GenericName=QR code scanner
GenericName[vi]=Máy quét mã QR
X-GNOME-FullName=CoBang QR code scanner for GTK+ desktop
X-GNOME-FullName[vi]=Chương trình quét mã QR cho desktop GTK+ CoBang
Comment=Scan and decode QR from camera or static image
Comment[vi]=Quét và giải mã QR từ camera hoặc ảnh tĩnh
Keywords=qr;code;qr-code;qr-decoder;qr-scanner
Exec=cobang %u
Terminal=false
Expand Down
Loading

0 comments on commit da3daf9

Please sign in to comment.