diff --git a/gen/ui/appy.js b/gen/ui/appy.js index a579491..98059b5 100644 --- a/gen/ui/appy.js +++ b/gen/ui/appy.js @@ -214,7 +214,10 @@ function setSubTitles(value) { // Function that toggles the value for showing/hiding sub-titles. function toggleSubTitles() { + // Get the current value var value = readCookie('showSubTitles'); + if (value == null) value = 'true'; + // Toggle the value var newValue = 'true'; if (value == 'true') newValue = 'false'; setSubTitles(newValue); diff --git a/pod/renderer.py b/pod/renderer.py index 12a4ba7..4061f78 100644 --- a/pod/renderer.py +++ b/pod/renderer.py @@ -432,13 +432,12 @@ class Renderer: ooOutput = '' try: if (not isinstance(self.ooPort, int)) and \ - (not isinstance(self.ooPort, long)): + (not isinstance(self.ooPort, long)): raise PodError(BAD_OO_PORT % str(self.ooPort)) try: from appy.pod.converter import Converter, ConverterError try: - Converter(resultOdtName, resultType, - self.ooPort).run() + Converter(resultOdtName, resultType, self.ooPort).run() except ConverterError, ce: raise PodError(CONVERT_ERROR % str(ce)) except ImportError: diff --git a/shared/data/__init__.py b/shared/data/__init__.py index dc72dae..bc1db06 100644 --- a/shared/data/__init__.py +++ b/shared/data/__init__.py @@ -163,6 +163,11 @@ nativeNames = { # List of languages having direction right-to-left (RTL) ----------------------- rtlLanguages = ('ar', 'he', 'fa') +# Countries of the "euro" zone +vatEuroCountries = ('AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'GR', 'ES', + 'FI', 'FR', 'GB', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', + 'NL', 'PL' 'PT', 'RO', 'SE', 'SI', 'SK') + # ------------------------------------------------------------------------------ class Languages: '''This class gives access to the language codes and names as standardized