From 61f1243e765f4f93bc278ab51745ec85b0945248 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Tue, 31 Jan 2017 00:26:33 +0200 Subject: [PATCH] Remove old build_locale scripts --- locale_build/build_locale.bat | 35 ----------------------------------- locale_build/build_locale.sh | 32 -------------------------------- 2 files changed, 67 deletions(-) delete mode 100644 locale_build/build_locale.bat delete mode 100755 locale_build/build_locale.sh diff --git a/locale_build/build_locale.bat b/locale_build/build_locale.bat deleted file mode 100644 index 3f1d6c9..0000000 --- a/locale_build/build_locale.bat +++ /dev/null @@ -1,35 +0,0 @@ -@echo off - -REM Author: Sotiris Papadopoulos -REM Last-Edited: 25/02/2015 -REM Script to auto-create a locale file. - -REM Usage: build_locale.bat -REM Example: build_locale.bat gr_GR gr.po - -REM To create a new locale file copy youtube_dl_gui.po -REM to a new locale file (e.g. gr.po) edit it with your -REM favorite editor and then run this script. - -REM You also need to install gettext for Windows - -set FILENAME=youtube_dl_gui - -set /a args=0 -for %%A in (%*) do set /a args+=1 - -if not %args% == 2 ( - echo Usage: %~n0.bat "locale" "locale_file" - echo Example: %~n0.bat gr_GR gr.po -) else ( - mkdir ..\%FILENAME%\locale\%1\LC_MESSAGES - - msgfmt.exe --output-file %FILENAME%.mo %2 - - move %2 ..\%FILENAME%\locale\%1\LC_MESSAGES\%FILENAME%.po 1>NUL - move %FILENAME%.mo ..\%FILENAME%\locale\%1\LC_MESSAGES\ 1>NUL - - tree /F ..\%FILENAME%\locale\%1 - - echo Done -) diff --git a/locale_build/build_locale.sh b/locale_build/build_locale.sh deleted file mode 100755 index 4b18953..0000000 --- a/locale_build/build_locale.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -# Author: Sotiris Papadopoulos -# Last-Edited: 25/02/2015 -# Script to auto-create a locale file. - -# Usage: ./build_locale.sh -# Example: ./build_locale.sh gr_GR gr.po - -# To create a new locale file copy youtube_dl_gui.po -# to a new locale file (e.g. gr.po) edit it with your -# favorite editor and then run this script. - - -FILENAME="youtube_dl_gui" - -if [ "$#" -ne 2 ]; then - echo "Usage: $0 " - echo "Example: $0 gr_GR gr.po" - exit 1 -fi - -mkdir -p "../$FILENAME/locale/$1/LC_MESSAGES/" - -msgfmt --output-file "$FILENAME.mo" "$2" - -mv "$2" "../$FILENAME/locale/$1/LC_MESSAGES/$FILENAME.po" -mv "$FILENAME.mo" "../$FILENAME/locale/$1/LC_MESSAGES/" - -tree "../$FILENAME/locale/$1" - -echo "Done"