← Back to team overview

indiv-screenlets-dev team mailing list archive

[Bug 722267] [NEW] [ClearWeather] Spanish translation - ZIP configuration problem

 

Public bug reported:

The problem is present in the Spanish translation (where "ZIP" is
translated as "CP").

You can set two different ZIP codes depending on the option you use (the
menu or the properties option).

The screenlet return to default ZIP code (KSXX0025) every time is
reloaded.

I modified line 95 in ClearWeatherScreenlet.py file and the problem
appears to be solved:

self.add_option(StringOption(_('Weather'), 
'ZIP', #<<< don't translate this ZIP string
str(self.ZIP), _('ZIP'), _('The ZIP code to be monitored taken from Weather.com')), realtime=False)

After this change the applet remember my ZIP code and both options show
the same ZIP code.

This is the content of my ClearWeather1.ini file (after the change):
--------
scale=2.0
theme_name=default
ZIP=ARBA0009
is_sticky=True
is_widget=False
draw_buttons=True
keep_above=False
lock_position=False
is_dragged=False
keep_below=True
y=204
x=1000
skip_taskbar=True
CP=ARBA0009
-------------
As you can see there are 2 different entrys for the ZIP code: "ZIP" and "CP".

** Affects: indiv-screenlets
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of
Individual Screenlets Developers, which is subscribed to Individual
Screenlets.
https://bugs.launchpad.net/bugs/722267

Title:
  [ClearWeather] Spanish translation - ZIP configuration problem

Status in Screenlets — individual widgets development:
  New

Bug description:
  The problem is present in the Spanish translation (where "ZIP" is
  translated as "CP").

  You can set two different ZIP codes depending on the option you use
  (the menu or the properties option).

  The screenlet return to default ZIP code (KSXX0025) every time is
  reloaded.

  I modified line 95 in ClearWeatherScreenlet.py file and the problem
  appears to be solved:

  self.add_option(StringOption(_('Weather'), 
  'ZIP', #<<< don't translate this ZIP string
  str(self.ZIP), _('ZIP'), _('The ZIP code to be monitored taken from Weather.com')), realtime=False)

  After this change the applet remember my ZIP code and both options
  show the same ZIP code.

  This is the content of my ClearWeather1.ini file (after the change):
  --------
  scale=2.0
  theme_name=default
  ZIP=ARBA0009
  is_sticky=True
  is_widget=False
  draw_buttons=True
  keep_above=False
  lock_position=False
  is_dragged=False
  keep_below=True
  y=204
  x=1000
  skip_taskbar=True
  CP=ARBA0009
  -------------
  As you can see there are 2 different entrys for the ZIP code: "ZIP" and "CP".



Follow ups

References