Skip to content

Commit

Permalink
resource update
Browse files Browse the repository at this point in the history
  • Loading branch information
prrvchr committed Dec 26, 2023
1 parent dddbc7b commit d834e19
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 32 deletions.
18 changes: 4 additions & 14 deletions source/jdbcDriverOOo/resource/OptionsDialog_en_US.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
100=OptionsDialog.__init__()
101=OptionsDialog initialization completed
101=OptionsDialog has been loaded.

110=OptionsDialog._clearLog()
111=Clear log ... finished

120=OptionsDialog._logInfo()
121=Python version: %s
122=Python Path: %s

130=OptionsDialog._reloadVersion()
131=A restart is necessary

140=OptionsDialog._getDriverVersion()
141=Uno error while loading the driver: %s
142=Error while loading the driver: %s\nTraceback: %s
110=OptionsDialog._getDriverVersion()
111=Uno error while loading the driver: {}
112=Error while loading the driver: {}\nTraceback: {}
18 changes: 4 additions & 14 deletions source/jdbcDriverOOo/resource/OptionsDialog_fr_FR.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
100=OptionsDialog.__init__()
101=Initialisation d'OptionsDialog termin\u00e9e
101=OptionsDialog a été chargé.

110=OptionsDialog._clearLog()
111=Effacement du journal ... termin\u00e9
120=OptionsDialog._logInfo()
121=Version de Python: %s
122=Python Path: %s
130=OptionsDialog._reloadVersion()
131=Un red\u00e9marrage est n\u00e9cessaire
140=OptionsDialog._getDriverVersion()
141=Erreur Uno lors du chargement du pilote: %s
142=Erreur lors du chargement du pilote: %s\nTraceback: %s
110=OptionsDialog._getDriverVersion()
111=Erreur Uno lors du chargement du pilote: {}
112=Erreur lors du chargement du pilote: {}\nTraceback: {}
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def __init__(self, ctx, lock):
root = self._getRootProtocol(False)
self._driver = config.getByName(root)
self._drivers = self._getDriverConfigurations(config, root)
self._logger = getLogger(ctx, 'Driver', g_basename)
self._logger.logprb(INFO, 'OptionsDialog', '__init__()', 101)

# OptionsModel getter methods
def getTabData(self):
Expand Down Expand Up @@ -303,11 +305,9 @@ def _getDriverVersion(self, driver, protocol):
version = self._version % connection.getMetaData().getDriverVersion()
connection.close()
except UnoException as e:
logger = getLogger(self._ctx, g_extension, g_basename)
logger.logprb(SEVERE, 'OptionsDialog', '_getDriverVersion()', 141, e.Message)
self._logger.logprb(SEVERE, 'OptionsDialog', '_getDriverVersion()', 111, e.Message)
except Exception as e:
logger = getLogger(self._ctx, g_extension, g_basename)
logger.logprb(SEVERE, 'OptionsDialog', '_getDriverVersion()', 142, string(e), 'traceback.print_exc()')
self._logger.logprb(SEVERE, 'OptionsDialog', '_getDriverVersion()', 112, e, traceback.format_exc())
return version

def _updateArchive(self, driver, archive):
Expand Down

0 comments on commit d834e19

Please sign in to comment.