diff --git a/setup/vi.sh b/setup/migrate-lang.sh similarity index 86% rename from setup/vi.sh rename to setup/migrate-lang.sh index 775aff9dd..144cf9e8a 100755 --- a/setup/vi.sh +++ b/setup/migrate-lang.sh @@ -3,7 +3,7 @@ # Set source and destination repositories SRC_REPO="/root/dev/NextERP/dev/Viindoo/odoo-18.0" DEST_REPO="/root/dev/NextERP/dev/odoo18/Odoo18" - +LANG="vi" # Ensure both paths exist if [ ! -d "$SRC_REPO" ]; then echo "Error: Source repository does not exist!" @@ -17,7 +17,7 @@ fi # Find and copy vi.po files while preserving directory structure cd "$SRC_REPO" || exit -find . -type f -name "vi.po" | while read -r file; do +find . -type f -name "${LANG}.po" | while read -r file; do # Get the directory path of the file dir_path=$(dirname "$file") @@ -30,4 +30,4 @@ find . -type f -name "vi.po" | while read -r file; do echo "Copied: $file -> $DEST_REPO/$dir_path/" done -echo "All vi.po files copied successfully!" \ No newline at end of file +echo "All ${LANG}.po files copied successfully!" \ No newline at end of file