[debian-edu-commits] [Git][debian-edu/debian-edu-doc][master] Add language specific date formatting for pt, zh-cn, ta, and id.

Frans Spiesschaert (@frans) gitlab at salsa.debian.org
Mon Jan 20 20:32:59 GMT 2025



Frans Spiesschaert pushed to branch master at Debian Edu / debian-edu-doc


Commits:
270b5ece by Frans Spiesschaert at 2025-01-20T21:32:41+01:00
Add language specific date formatting for pt, zh-cn, ta, and id.

- - - - -


1 changed file:

- documentation/common/Makefile.common


Changes:

=====================================
documentation/common/Makefile.common
=====================================
@@ -18,12 +18,16 @@ DATE_02 = $(shell dpkg-parsechangelog -l ../../debian/changelog -S Date | date -
 DATE_03 = $(shell dpkg-parsechangelog -l ../../debian/changelog -S Date | date -u "+%Y"年"%m"月"%d"日 -f -)
 DATE_04 = $(shell dpkg-parsechangelog -l ../../debian/changelog -S Date | date -u "+%d"/"%m"/"%Y" -f -)
 DATE_05 = $(shell dpkg-parsechangelog -l ../../debian/changelog -S Date | date -u "+%Y"/"%-m"/"%-d" -f -)
+DATE_06 = $(shell dpkg-parsechangelog -l ../../debian/changelog -S Date | date -u "+%-d"//"%-m"//"%y" -f -)
+DATE_07 = $(shell dpkg-parsechangelog -l ../../debian/changelog -S Date | date -u "+%d"//"%m"//"%y" -f -)
 SED_00= 's%</para><para> </para>%$(DATE_00)%'
 SED_01= 's%</para><para> </para>%$(DATE_01)%'
 SED_02= 's%</para><para> </para>%$(DATE_02)%'
 SED_03= 's%</para><para> </para>%$(DATE_03)%'
 SED_04= 's%</para><para> </para>%$(DATE_04)%'
 SED_05= 's%</para><para> </para>%$(DATE_05)%'
+SED_06= 's%</para><para> </para>%$(DATE_06)%'
+SED_07= 's%</para><para> </para>%$(DATE_07)%'
 # Common para tag fix (after the date has been included)
 SED_100= 's%<subtitle><para>%<subtitle>%'
 # Fix for id tag (legacy manuals)
@@ -78,12 +82,16 @@ build-xml:
 				;; \
 				fr|nl) sed -i $(SED_02) $(name).$$f.xml \
 				;; \
-				ja) sed -i $(SED_03) $(name).$$f.xml \
+				ja|zh-cn) sed -i $(SED_03) $(name).$$f.xml \
 				;; \
-				es|it|pt-br|pt-pt) sed -i $(SED_04) $(name).$$f.xml \
+				es|it|pt-br|pt-pt|pt) sed -i $(SED_04) $(name).$$f.xml \
 				;; \
 				zh-tw) sed -i $(SED_05) $(name).$$f.xml \
 				;; \
+				ta) sed -i $(SED_06) $(name).$$f.xml \
+				;; \
+				id) sed -i $(SED_07) $(name).$$f.xml \
+				;; \
 				*) sed -i $(SED_00) $(name).$$f.xml \
 				;; \
 			esac ; \
@@ -105,11 +113,15 @@ build-xml:
 			;; \
 			fr|nl) sed -i $(SED_02) $(name).$(LINGUA).xml \
 			;; \
-			ja) sed -i $(SED_03) $(name).$(LINGUA).xml \
+			ja|zh-cn) sed -i $(SED_03) $(name).$(LINGUA).xml \
+			;; \
+			es|it|pt-br|pt-pt|pt) sed -i $(SED_04) $(name).$(LINGUA).xml \
+			;; \
+			zh-tw) sed -i $(SED_05) $(name).$(LINGUA).xml \
 			;; \
-			es|it|pt-br|pt-pt) sed -i $(SED_04) $(name).$(LINGUA).xml \
+			ta) sed -i $(SED_06) $(name).$(LINGUA).xml \
 			;; \
-			zh-tw) sed -i $(SED_05) $(name).$$f.xml \
+			id) sed -i $(SED_07) $(name).$(LINGUA).xml \
 			;; \
 			*) sed -i $(SED_00) $(name).$(LINGUA).xml \
 			;; \



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-doc/-/commit/270b5ece8d905d7244479a8883f65cb037b9243d

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-doc/-/commit/270b5ece8d905d7244479a8883f65cb037b9243d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20250120/e2d6dfdf/attachment-0001.htm>


More information about the debian-edu-commits mailing list