[Nvda-dev] commit r3424 - in trunk/source: . synthDrivers

Lex lex at progger.ru
Tue Dec 8 06:26:53 UTC 2009


Hi,

Why adding the colons in the translation string itself? It is easier to 
append colon in the voice settings dialog code only when creating a label.

07.12.2009 22:38, NVDA Subversion пишет:
> Author: bzr
> Date: Mon Dec  7 20:38:02 2009
> New Revision: 3424
>
> Log:
> Added colons to the voice settings dialog label captions. (Sorry translators)
>
>
> Modified:
>     trunk/source/synthDriverHandler.py
>     trunk/source/synthDrivers/newfon.py
>
> Modified: trunk/source/synthDriverHandler.py
> ==============================================================================
> --- trunk/source/synthDriverHandler.py	(original)
> +++ trunk/source/synthDriverHandler.py	Mon Dec  7 20:38:02 2009
> @@ -172,29 +172,29 @@
>   	@classmethod
>   	def VoiceSetting(cls):
>   		"""Factory function for creating voice setting."""
> -		return SynthSetting("voice",_("&Voice"))
> +		return SynthSetting("voice",_("&Voice:"))
>   	@classmethod
>   	def VariantSetting(cls):
>   		"""Factory function for creating variant setting."""
> -		return SynthSetting("variant",_("V&ariant"))
> +		return SynthSetting("variant",_("V&ariant:"))
>
>   	@classmethod
>   	def RateSetting(cls,minStep=5):
>   		"""Factory function for creating rate setting."""
> -		return NumericSynthSetting("rate",_("&Rate"),minStep)
> +		return NumericSynthSetting("rate",_("&Rate:"),minStep)
>   	@classmethod
>   	def VolumeSetting(cls,minStep=5):
>   		"""Factory function for creating volume setting."""
> -		return NumericSynthSetting("volume",_("V&olume"),minStep)
> +		return NumericSynthSetting("volume",_("V&olume:"),minStep)
>   	@classmethod
>   	def PitchSetting(cls,minStep=5):
>   		"""Factory function for creating pitch setting."""
> -		return NumericSynthSetting("pitch",_("&Pitch"),minStep)
> +		return NumericSynthSetting("pitch",_("&Pitch:"),minStep)
>
>   	@classmethod
>   	def InflectionSetting(cls,minStep=5):
>   		"""Factory function for creating inflection setting."""
> -		return NumericSynthSetting("inflection",_("&Inflection"),minStep)
> +		return NumericSynthSetting("inflection",_("&Inflection:"),minStep)
>
>   	@classmethod
>   	def check(cls):
>
> Modified: trunk/source/synthDrivers/newfon.py
> ==============================================================================
> --- trunk/source/synthDrivers/newfon.py	(original)
> +++ trunk/source/synthDrivers/newfon.py	Mon Dec  7 20:38:02 2009
> @@ -172,9 +172,9 @@
>   	description = _("russian newfon synthesizer by Sergey Shishmintzev")
>   	supportedSettings=(
>   		SynthDriver.VoiceSetting(),
> -		SynthSetting("language",_("&Language")),
> +		SynthSetting("language",_("&Language:")),
>   		SynthDriver.RateSetting(),
> -		SynthSetting("accel",_("&Acceleration")),
> +		SynthSetting("accel",_("&Acceleration:")),
>   		SynthDriver.PitchSetting(),
>   		SynthDriver.InflectionSetting(10),
>   		SynthDriver.VolumeSetting(),
>
> _______________________________________________
> Nvda-dev mailing list
> Nvda-dev at lists.nvaccess.org
> http://lists.nvaccess.org/listinfo/nvda-dev
>    




More information about the Nvda-dev mailing list