L10n: H->M updated
This commit is contained in:
		
							parent
							
								
									016172f78d
								
							
						
					
					
						commit
						dee17e8001
					
				|  | @ -15,6 +15,9 @@ | ||||||
| #along with this program. If not, see <http://www.gnu.org/licenses/>. | #along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||||
| #In the "official" distribution you can find the license in agpl-3.0.txt. | #In the "official" distribution you can find the license in agpl-3.0.txt. | ||||||
| 
 | 
 | ||||||
|  | import L10n | ||||||
|  | _ = L10n.get_translation() | ||||||
|  | 
 | ||||||
| # TODO: get writehand() encoding correct | # TODO: get writehand() encoding correct | ||||||
| 
 | 
 | ||||||
| import re | import re | ||||||
|  | @ -28,18 +31,6 @@ import time,datetime | ||||||
| from copy import deepcopy | from copy import deepcopy | ||||||
| import pprint | import pprint | ||||||
| 
 | 
 | ||||||
| import locale |  | ||||||
| lang=locale.getdefaultlocale()[0][0:2] |  | ||||||
| if lang=="en": |  | ||||||
|     def _(string): return string |  | ||||||
| else: |  | ||||||
|     import gettext |  | ||||||
|     try: |  | ||||||
|         trans = gettext.translation("fpdb", localedir="locale", languages=[lang]) |  | ||||||
|         trans.install() |  | ||||||
|     except IOError: |  | ||||||
|         def _(string): return string |  | ||||||
| 
 |  | ||||||
| import logging | import logging | ||||||
| # logging has been set up in fpdb.py or HUD_main.py, use their settings: | # logging has been set up in fpdb.py or HUD_main.py, use their settings: | ||||||
| log = logging.getLogger("parser") | log = logging.getLogger("parser") | ||||||
|  |  | ||||||
|  | @ -15,6 +15,9 @@ | ||||||
| #along with this program. If not, see <http://www.gnu.org/licenses/>. | #along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||||
| #In the "official" distribution you can find the license in agpl-3.0.txt. | #In the "official" distribution you can find the license in agpl-3.0.txt. | ||||||
| 
 | 
 | ||||||
|  | import L10n | ||||||
|  | _ = L10n.get_translation() | ||||||
|  | 
 | ||||||
| import re | import re | ||||||
| import sys | import sys | ||||||
| import traceback | import traceback | ||||||
|  | @ -41,18 +44,6 @@ import Hand | ||||||
| from Exceptions import FpdbParseError | from Exceptions import FpdbParseError | ||||||
| import Configuration | import Configuration | ||||||
| 
 | 
 | ||||||
| import locale |  | ||||||
| lang=locale.getdefaultlocale()[0][0:2] |  | ||||||
| if lang=="en": |  | ||||||
|     def _(string): return string |  | ||||||
| else: |  | ||||||
|     import gettext |  | ||||||
|     try: |  | ||||||
|         trans = gettext.translation("fpdb", localedir="locale", languages=[lang]) |  | ||||||
|         trans.install() |  | ||||||
|     except IOError: |  | ||||||
|         def _(string): return string |  | ||||||
| 
 |  | ||||||
| import pygtk | import pygtk | ||||||
| import gtk | import gtk | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -22,6 +22,10 @@ Create and manage the hud overlays. | ||||||
| #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||||||
| 
 | 
 | ||||||
| ######################################################################## | ######################################################################## | ||||||
|  | 
 | ||||||
|  | import L10n | ||||||
|  | _ = L10n.get_translation() | ||||||
|  | 
 | ||||||
| #    Standard Library modules | #    Standard Library modules | ||||||
| import os | import os | ||||||
| import sys | import sys | ||||||
|  | @ -42,18 +46,6 @@ if os.name == 'nt': | ||||||
|     import win32con |     import win32con | ||||||
|     import win32api |     import win32api | ||||||
| 
 | 
 | ||||||
| import locale |  | ||||||
| lang = locale.getdefaultlocale()[0][0:2] |  | ||||||
| if lang == "en": |  | ||||||
|     def _(string): return string |  | ||||||
| else: |  | ||||||
|     import gettext |  | ||||||
|     try: |  | ||||||
|         trans = gettext.translation("fpdb", localedir="locale", languages=[lang]) |  | ||||||
|         trans.install() |  | ||||||
|     except IOError: |  | ||||||
|         def _(string): return string |  | ||||||
| 
 |  | ||||||
| #    FreePokerTools modules | #    FreePokerTools modules | ||||||
| import Configuration | import Configuration | ||||||
| import Stats | import Stats | ||||||
|  |  | ||||||
|  | @ -19,6 +19,9 @@ | ||||||
| #see http://docs.python.org/library/imaplib.html for the python interface | #see http://docs.python.org/library/imaplib.html for the python interface | ||||||
| #see http://tools.ietf.org/html/rfc2060#section-6.4.4 for IMAP4 search criteria | #see http://tools.ietf.org/html/rfc2060#section-6.4.4 for IMAP4 search criteria | ||||||
| 
 | 
 | ||||||
|  | import L10n | ||||||
|  | _ = L10n.get_translation() | ||||||
|  | 
 | ||||||
| from imaplib import IMAP4, IMAP4_SSL | from imaplib import IMAP4, IMAP4_SSL | ||||||
| import sys | import sys | ||||||
| import codecs | import codecs | ||||||
|  | @ -33,18 +36,6 @@ import PokerStarsSummary | ||||||
| import FullTiltPokerSummary | import FullTiltPokerSummary | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import locale |  | ||||||
| lang=locale.getdefaultlocale()[0][0:2] |  | ||||||
| if lang=="en": |  | ||||||
|     def _(string): return string |  | ||||||
| else: |  | ||||||
|     import gettext |  | ||||||
|     try: |  | ||||||
|         trans = gettext.translation("fpdb", localedir="locale", languages=[lang]) |  | ||||||
|         trans.install() |  | ||||||
|     except IOError: |  | ||||||
|         def _(string): return string |  | ||||||
| 
 |  | ||||||
| def splitPokerStarsSummaries(summaryText): #TODO: this needs to go to PSS.py | def splitPokerStarsSummaries(summaryText): #TODO: this needs to go to PSS.py | ||||||
|     re_SplitTourneys = PokerStarsSummary.PokerStarsSummary.re_SplitTourneys |     re_SplitTourneys = PokerStarsSummary.PokerStarsSummary.re_SplitTourneys | ||||||
|     splitSummaries = re.split(re_SplitTourneys, summaryText) |     splitSummaries = re.split(re_SplitTourneys, summaryText) | ||||||
|  |  | ||||||
|  | @ -19,6 +19,9 @@ | ||||||
| 
 | 
 | ||||||
| ######################################################################## | ######################################################################## | ||||||
| 
 | 
 | ||||||
|  | import L10n | ||||||
|  | _ = L10n.get_translation() | ||||||
|  | 
 | ||||||
| # This code is based on CarbonToFpdb.py by Matthew Boss | # This code is based on CarbonToFpdb.py by Matthew Boss | ||||||
| # | # | ||||||
| # TODO: | # TODO: | ||||||
|  | @ -45,18 +48,6 @@ import logging | ||||||
| from HandHistoryConverter import * | from HandHistoryConverter import * | ||||||
| from decimal import Decimal | from decimal import Decimal | ||||||
| 
 | 
 | ||||||
| import locale |  | ||||||
| lang=locale.getdefaultlocale()[0][0:2] |  | ||||||
| if lang=="en": |  | ||||||
|     def _(string): return string |  | ||||||
| else: |  | ||||||
|     import gettext |  | ||||||
|     try: |  | ||||||
|         trans = gettext.translation("fpdb", localedir="locale", languages=[lang]) |  | ||||||
|         trans.install() |  | ||||||
|     except IOError: |  | ||||||
|         def _(string): return string |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| class iPoker(HandHistoryConverter): | class iPoker(HandHistoryConverter): | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -3,6 +3,9 @@ | ||||||
| # Code from http://ender.snowburst.org:4747/~jjohns/interlocks.py | # Code from http://ender.snowburst.org:4747/~jjohns/interlocks.py | ||||||
| # Thanks JJ! | # Thanks JJ! | ||||||
| 
 | 
 | ||||||
|  | import L10n | ||||||
|  | _ = L10n.get_translation() | ||||||
|  | 
 | ||||||
| import sys | import sys | ||||||
| import os, os.path | import os, os.path | ||||||
| import subprocess | import subprocess | ||||||
|  | @ -10,18 +13,6 @@ import time | ||||||
| import signal | import signal | ||||||
| import base64 | import base64 | ||||||
| 
 | 
 | ||||||
| import locale |  | ||||||
| lang=locale.getdefaultlocale()[0][0:2] |  | ||||||
| if lang=="en": |  | ||||||
|     def _(string): return string |  | ||||||
| else: |  | ||||||
|     import gettext |  | ||||||
|     try: |  | ||||||
|         trans = gettext.translation("fpdb", localedir="locale", languages=[lang]) |  | ||||||
|         trans.install() |  | ||||||
|     except IOError: |  | ||||||
|         def _(string): return string |  | ||||||
| 
 |  | ||||||
| InterProcessLock = None | InterProcessLock = None | ||||||
| 
 | 
 | ||||||
| """ | """ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user