Skip to content

Commit 4abeeee

Browse files
Update transifex-push.yml
1 parent e9b042e commit 4abeeee

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/transifex-push.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,15 @@ jobs:
239239
fi
240240
241241
# ------------------------------------------------------------
242-
# 11. Create temporary CPython-style Tamil locale tree
242+
# 11. Create temporary Transifex-compatible Tamil locale tree
243243
#
244-
# Example:
244+
# Generated .tx/config expects:
245245
#
246-
# library/functions.po
246+
# ./<lang>/LC_MESSAGES/<resource>.po
247247
#
248-
# ->
248+
# Therefore Tamil files must temporarily exist under:
249249
#
250-
# locales/ta/LC_MESSAGES/library/functions.po
250+
# ./ta/LC_MESSAGES/<resource>.po
251251
# ------------------------------------------------------------
252252
- name: Prepare Tamil translations for Transifex
253253
shell: bash
@@ -256,14 +256,14 @@ jobs:
256256
257257
echo "Creating temporary Tamil locale structure..."
258258
259-
mkdir -p locales/ta/LC_MESSAGES
259+
mkdir -p ta/LC_MESSAGES
260260
261261
MAPPED_COUNT=0
262262
263263
while IFS= read -r -d '' file; do
264264
relative_path="${file#./}"
265265
266-
target="locales/ta/LC_MESSAGES/${relative_path}"
266+
target="ta/LC_MESSAGES/${relative_path}"
267267
268268
mkdir -p "$(dirname "$target")"
269269
@@ -276,7 +276,7 @@ jobs:
276276
find . \
277277
-type f \
278278
-name "*.po" \
279-
! -path "./locales/*" \
279+
! -path "./ta/*" \
280280
! -path "./.git/*" \
281281
-print0
282282
)
@@ -288,8 +288,8 @@ jobs:
288288
echo "ERROR: No Tamil translation files were mapped."
289289
exit 1
290290
fi
291-
292-
# ------------------------------------------------------------
291+
292+
# ------------------------------------------------------------
293293
# 12. Validate temporary Tamil locale structure
294294
# ------------------------------------------------------------
295295
- name: Validate Tamil locale mapping
@@ -298,7 +298,7 @@ jobs:
298298
set -euo pipefail
299299
300300
MAPPED_FILE_COUNT=$(
301-
find locales/ta/LC_MESSAGES \
301+
find ta/LC_MESSAGES \
302302
-type f \
303303
-name "*.po" \
304304
| wc -l
@@ -307,15 +307,15 @@ jobs:
307307
echo "Mapped Tamil PO file count: $MAPPED_FILE_COUNT"
308308
309309
if [ "$MAPPED_FILE_COUNT" -eq 0 ]; then
310-
echo "ERROR: locales/ta/LC_MESSAGES contains no PO files."
310+
echo "ERROR: ta/LC_MESSAGES contains no PO files."
311311
exit 1
312312
fi
313313
314314
echo
315315
echo "=== SAMPLE MAPPED FILES ==="
316316
317317
mapfile -d '' SAMPLE_FILES < <(
318-
find locales/ta/LC_MESSAGES \
318+
find ta/LC_MESSAGES \
319319
-type f \
320320
-name "*.po" \
321321
-print0

0 commit comments

Comments
 (0)