Skip to content

Commit 056fb61

Browse files
committed
Merge branch 'js/i18n-no-location'
* js/i18n-no-location: gitk: commit translation files without file information
2 parents 696e001 + e7db067 commit 056fb61

16 files changed

Lines changed: 155 additions & 4487 deletions

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ gitk-wish: gitk GIT-TCLTK-VARS
7070
$(PO_TEMPLATE): gitk
7171
$(XGETTEXT) -kmc -LTcl -o $@ gitk
7272
update-po:: $(PO_TEMPLATE)
73-
$(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U $p $(PO_TEMPLATE) ; )
73+
$(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U --add-location $p $(PO_TEMPLATE) ; )
74+
@echo "Before committing changes, ensure that a clean-filter is installed:"; \
75+
echo; \
76+
echo " git config filter.gettext-no-location.clean \"msgcat --no-location -\""
7477
$(ALL_MSGFILES): %.msg : %.po
7578
@echo Generating catalog $@
7679
$(MSGFMT) --statistics --tcl -l $(basename $(notdir $<)) -d $(dir $@) $<

po/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*.po filter=gettext-no-location

0 commit comments

Comments
 (0)