We have some eerily similar messages, should we fix now or later?
Everyone,
Xavier and I noticed when walking through the translations tonight
that we haven't done the greatest job keep our workload down here.
There are a lot of messages that differ by punctuation only, or
contain a hardcoded path vs. another one with a '%s', etc.
I hacked together a quick script to find some of these awesome
mistakes. The script is attached (and instructions if you want to run
it locally are roughly in the top, it requires the python-Levenshtein
module), the results are pasted below from both of our pot files.
Should we try and fix some of this mess right now while we are waiting
on translations? For most people it should not increase your workload
as we will be reducing the number of translations and not be adding
more than a handful of new ones (that can be based off of the existing
ones if necessary).
-Dan
dmcgee@galway ~/projects/pacman (master)
$ ./similar-messages.py lib/libalpm/po/libalpm.pot
Read 136 messages
Found 36 similar messages
0.815:
could not change directory to %s (%s)
could not change the root directory (%s)
0.815:
could not open file %s: %s
could not open pipe (%s)
0.815:
invalid or corrupted package
invalid or corrupted delta
0.816:
could not open %s: %s
could not open pipe (%s)
0.821:
unexpected system error
unexpected error
0.824:
could not create directory %s: %s
could not create temp directory
0.825:
could not change the root directory (%s)
could not change directory to / (%s)
0.828:
removing invalid database: %s
removing invalid file: %s
0.828:
transaction already initialized
transaction not initialized
0.829:
%s-%s is up to date -- skipping
%s-%s is up to date -- reinstalling
0.833:
%s saved as %s
%s installed as %s
0.833:
could not open database
could not create database
0.833:
could not find database
could not update database
0.838:
could not change directory to %s (%s)
could not create directory %s: %s
0.842:
could not find or read file
could not find or read package
0.847:
missing package name in %s
missing package version in %s
0.847:
could not find or read file
could not find or read directory
0.852:
could not create pipe (%s)
could not open pipe (%s)
0.853:
failed to retrieve some files
failed to retrieve some files from %s
0.853:
problem occurred while upgrading %s
problem occurred while installing %s
0.857:
duplicated database entry '%s'
corrupted database entry '%s'
0.867:
missing package name in %s
missing package metadata in %s
0.870:
could not open database
could not find database
0.872:
could not update database entry %s-%s
could not remove database entry %s-%s
0.874:
could not get filesystem information
could not get filesystem information for %s: %s
0.875:
could not open database
could not update database
0.880:
could not create database
could not update database
0.882:
could not commit removal transaction
could not commit transaction
0.886:
could not remove database entry
could not remove database entry %s-%s
0.902:
could not open file %s: %s
could not open %s: %s
0.924:
%s database is inconsistent: name mismatch on package %s
%s database is inconsistent: version mismatch on package %s
0.929:
%s: ignoring package upgrade (%s => %s)
%s: ignoring package downgrade (%s => %s)
0.937:
failed retrieving file '%s' from %s : %s
failed retrieving file '%s' from %s
0.961:
could not change directory to %s (%s)
could not change directory to / (%s)
0.962:
warning given when extracting %s (%s)
warning given while extracting %s (%s)
0.963:
not enough free disk space
not enough free disk space
0.807:
The source directory is empty, there is nothing to build!
The package directory is empty, there is nothing to repackage!
0.808:
%s file (%s) does not exist.
File '%s' does not exist
0.809:
--asdeps mark packages as non-explicitly installed
--asexplicit install packages as explicitly installed
0.809:
--asexplicit mark packages as explicitly installed
--asdeps install packages as non-explicitly installed
0.810:
%s does not exist.
File '%s' does not exist
0.810:
-i, --info view package information (-ii for backup files)
-i, --info view package information
0.812:
problem setting dbpath '%s' (%s)
problem setting logfile '%s' (%s)
0.812:
Total Download Size: %.2f MB
Total Removed Size: %.2f MB
0.812:
Total Installed Size: %.2f MB
Total Removed Size: %.2f MB
0.815:
package "%s" not found
package '%s' was not found
0.817:
failed to prepare transaction (%s)
failed to commit transaction (%s)
0.817:
failed to commit transaction (%s)
failed to release transaction (%s)
0.817:
removing old packages from cache...
removing all files from cache...
0.818:
operation
operations:
0.818:
--config <path> set an alternate configuration file
--logfile <path> set an alternate log file
0.818:
Total Download Size: %.2f MB
Total Installed Size: %.2f MB
0.821:
%s is not allowed to start with a hyphen.
%s is not allowed to contain hyphens.
0.821:
Copyright (c) 2010-2011 Pacman Development Team
<pacman-dev@archlinux.org>.
This is free software; see the source
for copying conditions.
There is NO WARRANTY, to the extent
permitted by law.
0.857:
A package has already been built. (use -f to overwrite)
Part of the package group has already been built. (use -f to overwrite)
0.857:
Part of the package group has already been built. (use -f to overwrite)
A source package has already been built. (use -f to overwrite)
0.858:
Copyright (c) 2006-2011 Pacman Development Team
<pacman-dev@archlinux.org>.
Copyright (C) 2002-2006 Judd Vinet
<jvinet@zeroflux.org>.
This is free software; see the source for
copying conditions.
There is NO WARRANTY, to the extent permitted by
law.
Copyright (c) 2010-2011 Pacman Development Team
<pacman-dev@archlinux.org>.
This is free software; see the source
for copying conditions.
There is NO WARRANTY, to the extent
permitted by law.
0.862:
Creating 'depends' db entry...
Creating 'files' db entry...