Skip to content

Commit 8ba07ec

Browse files
committed
Merge tag 'l10n-2.54.0-v2' of https://github.com/git-l10n/git-po
l10n-2.54.0-v2 * tag 'l10n-2.54.0-v2' of https://github.com/git-l10n/git-po: l10n: bg.po: Updated Bulgarian translation (6226t) l10n: zh_TW: update translation for Git 2.54 l10n: Update Catalan Translation l10n: ga.po: update for Git 2.54 l10n: fr: v2.54.0 l10n: tr: Update Turkish translations l10n: sv.po: Update Swedish translation l10n: sv.po: correct various translations l10n: zh_CN: updated translation for 2.54 l10n: bg.po: Updated Bulgarian translation (6226t) l10n: zh_CN: post-2.53 code review l10n: document AI and PO helper in po/README l10n: docs: add review instructions in AGENTS.md l10n: docs: add translation instructions in AGENTS.md l10n: docs: add update PO instructions in AGENTS.md l10n: docs: add AGENTS.md with update POT instructions l10n: add .gitattributes to simplify location filtering l10n: fix 'zh_TW.po' 'Applying patch'
2 parents e895506 + 5f53a36 commit 8ba07ec

13 files changed

Lines changed: 11694 additions & 4798 deletions

File tree

po/.gitattributes

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Git Attributes for PO Files
2+
#
3+
# This file configures Git filters to automatically strip location information
4+
# from PO files when committing, producing cleaner diffs and saving repository
5+
# space.
6+
#
7+
# Two filter types are used:
8+
# 1. gettext-no-location: Strips both filenames and line numbers
9+
# (e.g., removes "#: main.c:123" entirely)
10+
# 2. gettext-no-line-number: Preserves filenames but removes line numbers, which
11+
# requires gettext 0.20 or higher
12+
# (e.g., "#: main.c:123" becomes "#: main.c")
13+
#
14+
# See `po/README.md` for instructions on setting up the required filter drivers.
15+
16+
# Default: Strip the whole location comments for all .po files
17+
*.po filter=gettext-no-location
18+
19+
# Legacy, unmaintained PO files: filter disabled to avoid index vs
20+
# working-tree mismatch (these files still have location comments).
21+
el.po -filter
22+
is.po -filter
23+
it.po -filter
24+
ko.po -filter
25+
pl.po -filter
26+
pt_PT.po -filter
27+
28+
# These files use gettext-no-line-number (keep filenames, strip line
29+
# numbers). The choice is per l10n team preference. Requires gettext 0.20+.
30+
# The only benefit is locating source files from location comments when
31+
# the .po file is not updated from the POT via make po-update.
32+
ca.po filter=gettext-no-line-number
33+
id.po filter=gettext-no-line-number
34+
zh_CN.po filter=gettext-no-line-number
35+
zh_TW.po filter=gettext-no-line-number

0 commit comments

Comments
 (0)