Merge pull request #437 from inkstitch/locale-releases

Separate locales into different releases
pull/443/head
Kate Murphy 2019-04-17 21:16:38 -04:00 zatwierdzone przez GitHub
commit 8a2b6287ee
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
15 zmienionych plików z 35 dodań i 50 usunięć

Wyświetl plik

@ -7,7 +7,6 @@ ARCH:=$(shell uname -m)
dist: distclean locales inx dist: distclean locales inx
bin/build-dist $(EXTENSIONS) bin/build-dist $(EXTENSIONS)
cp inx/*.inx dist
cp -a images/examples dist/inkstitch cp -a images/examples dist/inkstitch
cp -a palettes dist/inkstitch cp -a palettes dist/inkstitch
cp -a symbols dist/inkstitch cp -a symbols dist/inkstitch
@ -15,11 +14,16 @@ dist: distclean locales inx
cp -a icons dist/inkstitch/bin cp -a icons dist/inkstitch/bin
cp -a locales dist/inkstitch/bin cp -a locales dist/inkstitch/bin
cp -a print dist/inkstitch/bin cp -a print dist/inkstitch/bin
if [ "$$BUILD" = "windows" ]; then \ for d in inx/*; do \
cd dist; zip -r ../inkstitch-$(VERSION)-win32.zip *; \ lang=$${d%.*}; \
else \ lang=$${lang#*/}; \
cd dist; tar zcf ../inkstitch-$(VERSION)-$(OS)-$(ARCH).tar.gz *; \ cp $$d/*.inx dist; \
fi if [ "$$BUILD" = "windows" ]; then \
cd dist; zip -r ../inkstitch-$(VERSION)-win32-$$lang.zip *; cd ..; \
else \
cd dist; tar zcf ../inkstitch-$(VERSION)-$(OS)-$(ARCH)-$$lang.tar.gz *; cd ..; \
fi; \
done
distclean: distclean:
rm -rf build dist inx locales *.spec *.tar.gz *.zip rm -rf build dist inx locales *.spec *.tar.gz *.zip

Wyświetl plik

@ -1,3 +1,4 @@
import errno
import os import os
import gettext import gettext
from os.path import dirname from os.path import dirname
@ -28,8 +29,16 @@ def build_environment():
def write_inx_file(name, contents): def write_inx_file(name, contents):
inx_file_name = "inkstitch_%s_%s.inx" % (name, current_locale) inx_locale_dir = os.path.join(inx_path, current_locale)
with open(os.path.join(inx_path, inx_file_name), 'w') as inx_file:
try:
os.makedirs(inx_locale_dir)
except OSError as e:
if e.errno != errno.EEXIST:
raise
inx_file_name = "inkstitch_%s.inx" % name
with open(os.path.join(inx_locale_dir, inx_file_name), 'w') as inx_file:
print >> inx_file, contents.encode("utf-8") print >> inx_file, contents.encode("utf-8")

Wyświetl plik

@ -11,9 +11,7 @@
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch">
<submenu name="{% trans %}English{% endtrans %}"> <submenu name="{% trans %}Satin Tools{% endtrans %}" />
<submenu name="{% trans %}Satin Tools{% endtrans %}" />
</submenu>
</submenu> </submenu>
</effects-menu> </effects-menu>
</effect> </effect>

Wyświetl plik

@ -9,9 +9,7 @@
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch">
<submenu name="{% trans %}English{% endtrans %}"> <submenu name="{% trans %}Satin Tools{% endtrans %}" />
<submenu name="{% trans %}Satin Tools{% endtrans %}" />
</submenu>
</submenu> </submenu>
</effects-menu> </effects-menu>
</effect> </effect>

Wyświetl plik

@ -9,9 +9,7 @@
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch">
<submenu name="{% trans %}English{% endtrans %}"> <submenu name="{% trans %}Satin Tools{% endtrans %}" />
<submenu name="{% trans %}Satin Tools{% endtrans %}" />
</submenu>
</submenu> </submenu>
</effects-menu> </effects-menu>
</effect> </effect>

Wyświetl plik

@ -19,10 +19,7 @@
<effect> <effect>
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch" />
{# L10N This is used for the submenu under Extensions -> Ink/Stitch. Translate this to your language's word for its language, e.g. "Español" for the spanish translation. #}
<submenu name="{% trans %}English{% endtrans %}" />
</submenu>
</effects-menu> </effects-menu>
</effect> </effect>
<script> <script>

Wyświetl plik

@ -9,9 +9,7 @@
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch">
<submenu name="{% trans %}English{% endtrans %}"> <submenu name="{% trans %}Satin Tools{% endtrans %}" />
<submenu name="{% trans %}Satin Tools{% endtrans %}" />
</submenu>
</submenu> </submenu>
</effects-menu> </effects-menu>
</effect> </effect>

Wyświetl plik

@ -13,10 +13,8 @@
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch">
<submenu name="{% trans %}English{% endtrans %}"> {# L10N Inkscape submenu under Extensions -> Ink/Stitch #}
{# L10N Inkscape submenu under Extensions -> Ink/Stitch #} <submenu name="{% trans %}Commands{% endtrans %}" />
<submenu name="{% trans %}Commands{% endtrans %}" />
</submenu>
</submenu> </submenu>
</effects-menu> </effects-menu>
</effect> </effect>

Wyświetl plik

@ -8,9 +8,7 @@
<effect> <effect>
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch" />
<submenu name="{% trans %}English{% endtrans %}" />
</submenu>
</effects-menu> </effects-menu>
</effect> </effect>
<script> <script>

Wyświetl plik

@ -13,9 +13,7 @@
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch">
<submenu name="{% trans %}English{% endtrans %}"> <submenu name="{% trans %}Commands{% endtrans %}" />
<submenu name="{% trans %}Commands{% endtrans %}" />
</submenu>
</submenu> </submenu>
</effects-menu> </effects-menu>
</effect> </effect>

Wyświetl plik

@ -8,10 +8,7 @@
<effect> <effect>
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch" />
{# L10N This is used for the submenu under Extensions -> Ink/Stitch. Translate this to your language's word for its language, e.g. "Español" for the spanish translation. #}
<submenu name="{% trans %}English{% endtrans %}" />
</submenu>
</effects-menu> </effects-menu>
</effect> </effect>
<script> <script>

Wyświetl plik

@ -12,9 +12,7 @@
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch">
<submenu name="{% trans %}English{% endtrans %}"> <submenu name="{% trans %}Commands{% endtrans %}" />
<submenu name="{% trans %}Commands{% endtrans %}" />
</submenu>
</submenu> </submenu>
</effects-menu> </effects-menu>
</effect> </effect>

Wyświetl plik

@ -8,9 +8,7 @@
<effect> <effect>
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch" />
<submenu name="{% trans %}English{% endtrans %}" />
</submenu>
</effects-menu> </effects-menu>
</effect> </effect>
<script> <script>

Wyświetl plik

@ -8,9 +8,7 @@
<effect> <effect>
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch" />
<submenu name="{% trans %}English{% endtrans %}" />
</submenu>
</effects-menu> </effects-menu>
</effect> </effect>
<script> <script>

Wyświetl plik

@ -8,9 +8,7 @@
<effect> <effect>
<object-type>all</object-type> <object-type>all</object-type>
<effects-menu> <effects-menu>
<submenu name="Ink/Stitch"> <submenu name="Ink/Stitch" />
<submenu name="{% trans %}English{% endtrans %}" />
</submenu>
</effects-menu> </effects-menu>
</effect> </effect>
<script> <script>