Code Monkey home page Code Monkey logo

Comments (4)

neteler avatar neteler commented on June 10, 2024

Technically it would work like this:

# clean PO catalogue of duplicated messages
mv grasswxpy_de.po grasswxpy_de.po.BAD
# --no-wrap or  --width=XX?
msguniq --use-first --width=80 grasswxpy_de.po.BAD > grasswxpy_de.po

Just I don't seem to get the width right in order to have minimal changes.
Well, perhaps that doesn't matter and Weblate would reformat the file anyway...

from grass.

HuidaeCho avatar HuidaeCho commented on June 10, 2024

Technically it would work like this:

# clean PO catalogue of duplicated messages
mv grasswxpy_de.po grasswxpy_de.po.BAD
# --no-wrap or  --width=XX?
msguniq --use-first --width=80 grasswxpy_de.po.BAD > grasswxpy_de.po

Just I don't seem to get the width right in order to have minimal changes. Well, perhaps that doesn't matter and Weblate would reformat the file anyway...

I thought make update-po takes care of merging.

grass/locale/Makefile

Lines 70 to 80 in 76bcffb

@cd ./po/ ; for po in `ls *_*.po 2>/dev/null` ; do \
suffix=`echo $$po | cut -d'_' -f2-`; \
lingua=`basename $$suffix .po`; \
prefix=`echo $$po | cut -d'_' -f1`; \
if msgmerge -o $$prefix\_$$suffix.new $$prefix\_$$suffix ../templates/$$prefix.pot; then\
mv $$prefix\_$$suffix.new $$prefix\_$$suffix; \
echo "Merged new messages into $$prefix\_$$suffix" ; \
else \
echo "Merging failed"; \
fi \
done

from grass.

neteler avatar neteler commented on June 10, 2024

I thought make update-po takes care of merging.

AFAIK no, as msguniq is missing in make update-po.

from grass.

neteler avatar neteler commented on June 10, 2024

AFAIK no, as msguniq is missing in make update-po.

Addressed in #3735

from grass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.