forked from israpps/Open-PS2-Loader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed language pack script added workflow for languages workflow action version bump
- Loading branch information
Showing
35 changed files
with
81 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ lng/lang_*.lng | |
*lng_src | ||
src/lang_internal.c | ||
include/lang_autogen.h | ||
tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,10 @@ | |
# Reworked by Doctor Q <[email protected]> | ||
|
||
# Set variables | ||
DATE=$(date +'%d %B %Y') | ||
CURRENT_DIR=$(pwd) | ||
BUILD_DIR="/tmp/OPL_LANG" | ||
LANG_LIST="/tmp/OPL_LANG_LIST" | ||
BUILD_DIR="$(pwd)/tmp/OPL_LANG" | ||
LANG_LIST="$(pwd)/tmp/OPL_LANG_LIST" | ||
make oplversion 2>/dev/null | ||
if [ $? == "0" ] | ||
then | ||
|
@@ -25,16 +26,22 @@ else | |
fi | ||
|
||
# Print a list | ||
printf "$(ls ${CURRENT_DIR}/lng/ | cut -c 6- | rev | cut -c 5- | rev)" > "${LANG_LIST}" | ||
mkdir -p "${BUILD_DIR}" | ||
cd "${CURRENT_DIR}/lng/" | ||
printf "$(ls ./*.lng | cut -c 6- | rev | cut -c 5- | rev)" > "${LANG_LIST}" | ||
cd "${CURRENT_DIR}" | ||
|
||
# Copy format | ||
while IFS= read -r CURRENT_FILE | ||
do | ||
mkdir -p "${BUILD_DIR}/${CURRENT_FILE}-${OPL_VERSION}/" | ||
cp "${CURRENT_DIR}/lng/lang_${CURRENT_FILE}.lng" "${BUILD_DIR}/${CURRENT_FILE}-${OPL_VERSION}/lang_${CURRENT_FILE}.lng" | ||
if [ -e "thirdparty/font_${CURRENT_FILE}.ttf" ] | ||
if [ -e "lng_src/thirdparty/font_${CURRENT_FILE}.ttf" ] | ||
then | ||
cp "${CURRENT_DIR}/lng_src/thirdparty/font_${CURRENT_FILE}.ttf" "${BUILD_DIR}/${CURRENT_FILE}-${OPL_VERSION}/font_${CURRENT_FILE}.ttf" | ||
elif [ -e "lng_src/thirdparty/font_${CURRENT_FILE}.otf" ] | ||
then | ||
cp "${CURRENT_DIR}/thirdparty/font_${CURRENT_FILE}.ttf" "${BUILD_DIR}/${CURRENT_FILE}-${OPL_VERSION}/font_${CURRENT_FILE}.ttf" | ||
cp "${CURRENT_DIR}/lng_src/thirdparty/font_${CURRENT_FILE}.otf" "${BUILD_DIR}/${CURRENT_FILE}-${OPL_VERSION}/font_${CURRENT_FILE}.otf" | ||
fi | ||
done < ${LANG_LIST} | ||
|
||
|
@@ -47,11 +54,11 @@ done < ${LANG_LIST} | |
----------------------------------------------------------------------------- | ||
Open PS2 Loader Official Translations (25 August 2016) | ||
Open PS2 Loader Official Translations (${DATE}) | ||
HOW TO INSTALL: | ||
1. make sure you are running latest OPL | ||
2. transfer both the the LANGUAGE FILE (.lng) and the FONT FILE (.ttf) into your OPL directory of your memory card | ||
2. transfer both the the LANGUAGE FILE (.lng) and the FONT FILE (.ttf/.otf) into your OPL directory of your memory card | ||
a. IMPORTANT: Do not rename the files | ||
b. NOTE: Some languages don't require a FONT file, so it won't be included | ||
3. run OPL | ||
|
@@ -65,9 +72,9 @@ EOF | |
# Lets pack it! | ||
cd ${BUILD_DIR}/ | ||
zip -r "${CURRENT_DIR}/OPNPS2LD_LANGS-${OPL_VERSION}.zip" ./* | ||
if [ -f "${CURRENT_DIR}/OPNPS2LD_LANGS-${OPL_VERSION}.zip" ] | ||
then echo "OPL Lang Package Complete: OPNPS2LD_LANGS-${OPL_VERSION}.zip" | ||
zip -r "${CURRENT_DIR}/OPNPS2LD-LANGS-${OPL_VERSION}.zip" ./* | ||
if [ -f "${CURRENT_DIR}/OPNPS2LD-LANGS-${OPL_VERSION}.zip" ] | ||
then echo "OPL Lang Package Complete: OPNPS2LD-LANGS-${OPL_VERSION}.zip" | ||
else echo "OPL Lang Package not found!" | ||
fi | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.