Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Good way to eliminate duplicates in pot file

See original GitHub issue

As the title says, I’m trying to find a way to eliminate duplicates in pot file.

The job can be achieved by using msguniq command and I can run it manually in Terminal but I’m wondering if I can do that from within this plugin. I know there is the processPot callback function to play with the resulted pot file, but I’m not quite familiar with how it should work.

Does anyone have experience with this? If yes can you let me know how it should be done?

Thank you all!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

ngocphammcommented, Feb 8, 2018

So now I have a separate task, which will be executed after makepot to make sure the pot file will only have unique msgids.

        exec: {
            potunique: {
                expand: true,
                cwd: '<%= dir.dest %>/languages',
                cmd: '/usr/local/bin/msguniq <%= cfg.slug %>.pot -o <%= cfg.slug %>.pot'
bradyverchercommented, Feb 7, 2018

Thanks for letting me know about msguniq merging them and keep me updated if you discover anything new!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python - Ways to remove duplicates from list
It first removes the duplicates and returns a dictionary which has to be converted to a list. This works well in the case...
Read more >
5 Apps to Find and Remove Duplicate Files in Windows 10
5 Apps to Find and Remove Duplicate Files in Windows 10 · 1. Duplicate Cleaner Free · 2. Duplicate File Finder · 3....
Read more >
Python remove Duplicates from a List
So here will go through different ways in which we can remove duplicates from a given list. In this tutorial, you will learn:....
Read more >
GNU gettext utilities - 7 Manipulating PO Files
Go to the first, previous, next, last section, table of contents. 7 Manipulating PO Files. Sometimes it is necessary to manipulate PO files...
Read more >
How to remove duplicates from a file and write to the same ...
I know I can use sort -u test.txt to remove the duplicates but to update the file with new content how do I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found