New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copying useless files from wx/locale folder in binary installation. #4217
Comments
Comment 2 by Michael Curran <mick@... on 2015-01-26 05:32
Changes:
|
Comment 3 by mdcurran on 2015-01-26 05:34 |
Comment 5 by Michael Curran <mick@... on 2015-01-29 04:56
|
Comment 6 by Michael Curran <mick@... on 2015-01-29 04:57
|
Comment 8 by Michael Curran <mick@... on 2015-03-16 05:48
Changes:
|
Comment 9 by mdcurran on 2015-03-16 22:40 |
Reported by dhankuta on 2014-06-23 09:25
currently, In nvda/locale folder; the language list contains all the languages having nvda.mo, *.dic and wxstd.mo from wx/locale.
The copying of wxstd.mo from wx/locale has a sense of meaning if and only if the same language locale of nvda is available. Right now, the lang list in general setting dialog and the language list on nvda/locale folder do not match; thus creating a confusion. Though no errorful action on operation; it is senseless to put the junk of *lang/lc_messages/wxstd.mo of those languages without nvda translation.
module: setup.py
current source codes:
def getLocaleDataFiles():
NVDALocaleFiles=[(f,)) for f in glob("locale//LC_MESSAGES/.mo")+glob("locale//.dic")](%28os.path.dirname%28f%29,%29
wxDir=wx.path[%28f,%29) for f in glob(wxDir+"/locale//LC_MESSAGES/.mo")](0]
wxLocaleFiles=[(os.path.dirname(f)[len(wxDir)+1:],)
NVDALocaleGestureMaps=[(f,)) for f in glob("locale/*/gestures.ini")]((os.path.dirname(f),)
return NVDALocaleFiles+wxLocaleFiles+NVDALocaleGestureMaps
Proposed patch:
def getLocaleDataFiles():
wxDir=wx.path[f in glob("locale/*/LC_MESSAGES"):
nvdaMoFiles.append((f, (f+"\nvda.mo",)))
if os.path.isfile(wxDir+""+f+"\wxstd.mo"):
wxMoFiles.append((f, (wxDir+""+f+"\wxstd.mo",)))
Him Prasad Gautam.
Blocked by #4847
The text was updated successfully, but these errors were encountered: