[shared] Added appy.shared.data.vatEuroCountries, which is the list of countries of the euro zone.
This commit is contained in:
parent
6d0d2ea591
commit
bba7c589be
|
@ -214,7 +214,10 @@ function setSubTitles(value) {
|
||||||
|
|
||||||
// Function that toggles the value for showing/hiding sub-titles.
|
// Function that toggles the value for showing/hiding sub-titles.
|
||||||
function toggleSubTitles() {
|
function toggleSubTitles() {
|
||||||
|
// Get the current value
|
||||||
var value = readCookie('showSubTitles');
|
var value = readCookie('showSubTitles');
|
||||||
|
if (value == null) value = 'true';
|
||||||
|
// Toggle the value
|
||||||
var newValue = 'true';
|
var newValue = 'true';
|
||||||
if (value == 'true') newValue = 'false';
|
if (value == 'true') newValue = 'false';
|
||||||
setSubTitles(newValue);
|
setSubTitles(newValue);
|
||||||
|
|
|
@ -437,8 +437,7 @@ class Renderer:
|
||||||
try:
|
try:
|
||||||
from appy.pod.converter import Converter, ConverterError
|
from appy.pod.converter import Converter, ConverterError
|
||||||
try:
|
try:
|
||||||
Converter(resultOdtName, resultType,
|
Converter(resultOdtName, resultType, self.ooPort).run()
|
||||||
self.ooPort).run()
|
|
||||||
except ConverterError, ce:
|
except ConverterError, ce:
|
||||||
raise PodError(CONVERT_ERROR % str(ce))
|
raise PodError(CONVERT_ERROR % str(ce))
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
@ -163,6 +163,11 @@ nativeNames = {
|
||||||
# List of languages having direction right-to-left (RTL) -----------------------
|
# List of languages having direction right-to-left (RTL) -----------------------
|
||||||
rtlLanguages = ('ar', 'he', 'fa')
|
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:
|
class Languages:
|
||||||
'''This class gives access to the language codes and names as standardized
|
'''This class gives access to the language codes and names as standardized
|
||||||
|
|
Loading…
Reference in a new issue