Content-Length: 269255 | pFad | http://github.com/UncoderIO/Uncoder_IO/commit/3cc30bbb08020df5db0042538b2d0a644b06805a

BD TDM-9415 enable one vendor translation with alt_mapping · UncoderIO/Uncoder_IO@3cc30bb · GitHub
Skip to content

Commit 3cc30bb

Browse files
committed
TDM-9415 enable one vendor translation with alt_mapping
1 parent 9e5e174 commit 3cc30bb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

uncoder-core/app/translator/translator.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,7 @@ def translate_one(
152152
source_alt_mapping: Optional[str] = None,
153153
target_alt_mapping: Optional[str] = None,
154154
) -> (bool, str):
155-
if source == target:
156-
if target_alt_mapping or source_alt_mapping:
157-
message = (
158-
"Currently, Uncoder doesn't support translation between "
159-
"non-default data schemas of the same platform."
160-
)
161-
return False, message
155+
if source == target and not (target_alt_mapping or source_alt_mapping):
162156
return True, text
163157
return self.__translate_one(
164158
text=text,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/UncoderIO/Uncoder_IO/commit/3cc30bbb08020df5db0042538b2d0a644b06805a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy