setup summit after svn->git

Zayed Al-Saidi zayed.alsaidi at gmail.com
Wed Nov 4 19:38:04 GMT 2026


Thank you. It works now.

Here my documentation for what I did:

First the git clone all the required repositories in ~/KDE (my working
folder):
git clone --depth 1 git at invent.kde.org:sdk/pology.git
git clone --depth 1 git at invent.kde.org:localization/l10n-templates.git
git clone --depth 1 git at invent.kde.org:localization/l10n-summit.git
git clone --depth 1 git at invent.kde.org:sysadmin/l10n-scripty.git
git clone --depth 1 git at invent.kde.org:localization/l10n-ar.git

Note: I put depth 1 to reduce the download size.

Before I work in po files, I run summit merge by run this script:
--------------------
# 1. Environment Variables
export L10NLANG="ar"

# KDEREPO where the all po files
export KDEREPO="~/KDE"
export PATH="~/KDE/pology/bin/:$PATH"

# autostash the work-in-porgress changes files then pull the new changes.
cd "$KDEREPO/l10n-ar"
git pull --rebase -X theirs --autostash

# 3. Update Git Repositories
# summit
cd "$KDEREPO/l10n-summit" && git pull && cd -

# KDE Templates
cd "$KDEREPO/l10n-templates" && git pull && cd -

# update l10n-scripty
cd "$KDEREPO/l10n-scripty" && git pull && cd -

# update Pology
cd "$KDEREPO/pology" && git pull && cd -

# Create summit firt time
# posummit scripts/docmessages.summit $L10NLANG gather --create --force

# 4. Process Summit
echo "Merging messages"
posummit $KDEREPO/l10n-summit/messages.summit $L10NLANG merge

echo "Merging docs"
posummit $KDEREPO/l10n-summit/docmessages.summit $L10NLANG merge
------------------------

After I finish my work I run the script to scatter the summit and commit my
work in the repository:
-------------------------
# 1. Environment Variables

# KDEREPO where the all po files
export KDEREPO="~/KDE"
export PATH="~/KDE/pology/bin/:$PATH"
export L10NLANG="ar"

# 2. Scatter translated strings back to branches

echo "Scattering messages"
posummit $KDEREPO/l10n-summit/messages.summit "$L10NLANG" scatter

echo "Scattering docmessages"
posummit $KDEREPO/l10n-summit/docmessages.summit "$L10NLANG" scatter

# 3. Navigate to KDE repository root
cd "$KDEREPO/l10n-ar"

git add -A -- '*.po' '*.docbook'
git commit -m "l10n-ar: Update translations"
git pull --rebase --autostash
git push origin master

---------------------------

I will update the commit part for docbook once the new po2xml adapted to
git.

Regards,
Zayed

On Wed, Nov 4, 2026 at 7:38 PM Karl Ove Hufthammer <karl at huftis.org> wrote:

> Hi!
>
> Yes, that’s correct. If all l10n-* folders are in the same folder,
> everything should work correctly.
>
> (It does for me. I use this script:
>
> https://invent.kde.org/localization/l10n-nn/-/blob/master/support/skript/kde-l10n-synk.sh?ref_type=heads
> ).
>
>
> Karl Ove Hufthammer
>
> Johnny Jazeix skreiv 04.11.2026 14:57:
> > hi,
> > I think you need to have l10n-templates, l10n-summit and l10n-ar under
> > the same directory.
> > I can check in a few hours on my computer if needed.
> > Cheers,
> > Johnny
> >
> >
> > Le mer. 4 nov. 2026 à 14:52, Zayed Al-Saidi <zayed.alsaidi at gmail.com> a
> écrit :
> >> Hi,
> >>
> >> I have difficulty setting up the summit after git migration. I have
> this script:
> >>
> >> # 1. Environment Variables
> >> # KDEREPO where the all po files
> >> export KDEREPO="~/KDE/l10n-ar"
> >>
> >> # KDESUPPORT where the templates and scripty
> >> export KDESUPPORT="~/KDE_support"
> >>
> >> # SUMMIT where is summit
> >> export SUMMIT="~/KDE_support/l10n-summit"
> >>
> >> export PATH="~/pology/bin/:$PATH"
> >> export L10NLANG="ar"
> >>
> >> # 2. Update git Repository
> >>
> >> cd "$KDEREPO"
> >>
> >> # This updates all po folders
> >> git pull --ff-only origin master
> >>
> >> # Summit update
> >> #svn up trunk/l10n-support/{scripts,$L10NLANG}
> >>
> >> # 3. Update Git Repositories
> >> # Pology
> >> cd ~/pology && git pull && cd -
> >>
> >> # summit
> >> cd ${SUMMIT} && git pull && cd -
> >>
> >> # KDE Templates
> >> cd ${KDESUPPORT}/l10n-templates/ && git pull && cd -
> >>
> >> # 4. Process Summit
> >> cd $KDEREPO/summit
> >> echo "Merging messages"
> >> posummit ${SUMMIT}/messages.summit $L10NLANG merge
> >>
> >> the last  command (posummit ${SUMMIT}/messages.summit $L10NLANG merge)
> is not working.  I think missing this:
> >> # Summit update
> >> #svn up trunk/l10n-support/{scripts,$L10NLANG}
> >>
> >> I appreciate your help.
> >>
> >> Regards,
> >> Zayed
>
>
> --
> Karl Ove Hufthammer
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-i18n-doc/attachments/20261104/9652a465/attachment.htm>


More information about the kde-i18n-doc mailing list