[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: aptitude: install ~p... won't work with some languages



tags 264716 serious
thanks

I'm trying where is a problem, and finally I found it in libapt-pkg-dev.

1. priority_matches() in aptitude/src/generic/mathcer.cc is called.
   It does string_matches(pattern, ver.PriorityType());
2. pattern is in English, but ver.PriorityType() is gettextized
   message.
3. PriorityType() is in cacheiterators.h of libapt-pkg-dev.
   inline const char *PriorityType() {return Owner->Priority(Ver->Priority);};

Conclusion:
This problem occurs when translator translates priority name as
his/her local language in apt/po.

Solution:
Hmm, how to solve... This is really serious problem.

- idea 1 is apt-pkg provides PriorityType() [in English result] and
  PriorityType_l10n() [in local language result] and so on. (reassign libapt-pkg-dev)
- idea 2 is aptitude has priority name msgid/msgstr as same as apt.
  Then string_matches compares gettextized pattern and
  ver.PriorityType().
- idea 3 is apt drops gettextized priority name. (reassign libapt-pkg-dev)
- Any better idea?

If we have no time, I'll take idea3-dash: I'll change msgstr of ja.po to
same as msgid.

Thanks,
-- 
Kenshi Muto
kmuto@debian.org



Reply to: