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 + French translations #11

Closed
wants to merge 9 commits into from
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 61 additions & 0 deletions data/com.github.cryptowyrm.copypastegrab.appdata.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2018 Christoph Budzinski <[email protected]> -->
<component type="desktop">
<id>com.github.cryptowyrm.copypastegrab</id>
<metadata_license>CC0</metadata_license>
<project_license>GPL-3.0+</project_license>
<name>Copy Paste Grab</name>
<summary>Download videos from hundreds of websites</summary>
<description>
<p>Easily download videos from hundreds of websites.</p>
<p>Just copy a link to a video, paste it into the app and it's going to grab it for you!</p>
<p><b>Note:</b> Not all video websites allow downloading videos, so make sure you only download from websites that explicitly allow downloading videos in their Terms of Service.</p>
</description>
<screenshots>
​ <screenshot type="default">
​ <caption>Downloading videos</caption>
​ <image>https://raw.githubusercontent.com/cryptowyrm/copypastegrab/master/data/screenshot_1.png</image>
​ </screenshot>
<screenshot>
​ <caption>Settings and welcome message</caption>
​ <image>https://raw.githubusercontent.com/cryptowyrm/copypastegrab/master/data/screenshot_2.png</image>
​ </screenshot>
​ </screenshots>
<developer_name>Christoph Budzinski</developer_name>
<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
<content_attribute id="violence-realistic">none</content_attribute>
<content_attribute id="violence-bloodshed">none</content_attribute>
<content_attribute id="violence-sexual">none</content_attribute>
<content_attribute id="violence-desecration">none</content_attribute>
<content_attribute id="violence-slavery">none</content_attribute>
<content_attribute id="violence-worship">none</content_attribute>
<content_attribute id="drugs-alcohol">none</content_attribute>
<content_attribute id="drugs-narcotics">none</content_attribute>
<content_attribute id="drugs-tobacco">none</content_attribute>
<content_attribute id="sex-nudity">none</content_attribute>
<content_attribute id="sex-themes">none</content_attribute>
<content_attribute id="sex-homosexuality">none</content_attribute>
<content_attribute id="sex-prostitution">none</content_attribute>
<content_attribute id="sex-adultery">none</content_attribute>
<content_attribute id="sex-appearance">none</content_attribute>
<content_attribute id="language-profanity">none</content_attribute>
<content_attribute id="language-humor">none</content_attribute>
<content_attribute id="language-discrimination">none</content_attribute>
<content_attribute id="social-chat">none</content_attribute>
<content_attribute id="social-info">none</content_attribute>
<content_attribute id="social-audio">none</content_attribute>
<content_attribute id="social-location">none</content_attribute>
<content_attribute id="social-contacts">none</content_attribute>
<content_attribute id="money-purchasing">none</content_attribute>
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
<url type="homepage">https://github.com/cryptowyrm/copypastegrab</url>
<url type="bugtracker">https://github.com/cryptowyrm/copypastegrab/issues</url>
<custom>
<value key="x-appcenter-color-primary">#8359ac</value>
<value key="x-appcenter-color-primary-text">rgb(255, 255, 255)</value>
<value key="x-appcenter-suggested-price">3</value>
</custom>
</component>
10 changes: 10 additions & 0 deletions data/com.github.cryptowyrm.copypastegrab.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=Copy Paste Grab
GenericName=Video downloader
Comment=Download videos from hundreds of websites
Categories=Utility;Network;Video;AudioVideo;
Exec=com.github.cryptowyrm.copypastegrab
Icon=com.github.cryptowyrm.copypastegrab
Terminal=false
Type=Application
Keywords=Download;Video;
17 changes: 17 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,20 @@ install_data(
meson.project_name() + '.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
)

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')
)

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')
)
19 changes: 7 additions & 12 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# project name and programming language
project('com.github.cryptowyrm.copypastegrab', 'vala', 'c')

# Include the translations module
i18n = import('i18n')

# Set our translation domain
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')

# Create a new executable, list the files we want to compile, list the dependencies we need, and install
executable(
meson.project_name(),
Expand All @@ -22,18 +28,7 @@ executable(
install: true
)

#Install our .desktop file so the Applications Menu will see it
install_data(
join_paths('data', meson.project_name() + '.desktop'),
install_dir: join_paths(get_option('datadir'), 'applications')
)

#Install our .appdata.xml file so AppCenter will see it
install_data(
join_paths('data', meson.project_name() + '.appdata.xml'),
install_dir: join_paths(get_option('datadir'), 'metainfo')
)

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

meson.add_install_script('meson/post_install.py')
198 changes: 198 additions & 0 deletions po/LINGUAS
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
# please keep this list sorted alphabetically
#
aa
ab
ae
af
ak
am
an
ar
as
ast
av
ay
az
ba
be
bg
bh
bi
bm
bn
bo
br
bs
ca
ce
ch
ckb
co
cr
cs
cu
cv
cy
da
de
dv
dz
ee
el
en_AU
en_CA
en_GB
eo
es
et
eu
fa
ff
fi
fj
fo
fr_CA
fr
fy
ga
gd
gl
gn
gu
gv
ha
he
hi
ho
hr
ht
hu
hy
hz
ia
id
ie
ig
ii
ik
io
is
it
iu
ja
jv
ka
kg
ki
kj
kk
kl
km
kn
ko
kr
ks
ku
kv
kw
ky
la
lb
lg
li
ln
lo
lt
lu
lv
mg
mh
mi
mk
ml
mn
mo
mr
ms
mt
my
na
nb
nd
ne
ng
nl
nn
no
nr
nv
ny
oc
oj
om
or
os
pa
pi
pl
ps
pt_BR
pt
qu
rm
rn
ro
rue
ru
rw
sa
sc
sd
se
sg
si
sk
sl
sma
sm
sn
so
sq
sr
ss
st
su
sv
sw
ta
te
tg
th
ti
tk
tl
tn
to
tr
ts
tt
tw
ty
ug
uk
ur
uz
ve
vi
vo
wa
wo
xh
yi
yo
za
zh_CN
zh_HK
zh
zh_TW
zu
4 changes: 4 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src/Application.vala
src/DownloadRow.vala
src/SettingsPopover.vala
src/VideoDownload.vala
Loading