Update some things
This commit is contained in:
parent
e292440782
commit
06106315ff
3 changed files with 51 additions and 55 deletions
88
.env.example
88
.env.example
|
|
@ -1,45 +1,45 @@
|
|||
#API link, leave blank to use OpenAI API
|
||||
api=""
|
||||
|
||||
#API key
|
||||
key=""
|
||||
|
||||
#Oranization key, make something up for self hosted or other API
|
||||
organization=""
|
||||
|
||||
#LLM model name, use gpt-3.5-turbo-1106 or gpt-3.5-turbo or gpt-4-1106-preview for OpenAI API
|
||||
#For text generation webui use gpt-3.5-turbo, for other API's consult their documentation
|
||||
model="gpt-4o-2024-08-06"
|
||||
|
||||
#The language to translate TO, Don't forget to change the prompt
|
||||
language="English"
|
||||
|
||||
#The timeout before disconnect error, 30 to 120 recommended
|
||||
timeout="120"
|
||||
|
||||
#The number of files to translate at the same time, 1 recommended for free or self hosted API or gpt-4
|
||||
fileThreads="1"
|
||||
|
||||
#The number of threads per file, 1 recommended for free or self hosted API or gpt-4
|
||||
threads="1"
|
||||
|
||||
#The wordwrap of dialogue text
|
||||
width="60"
|
||||
|
||||
#The wordwap of items and help text
|
||||
listWidth="100"
|
||||
|
||||
#The wordwap of items and help text
|
||||
noteWidth="75"
|
||||
|
||||
# Custom input API cost - default value for gpt-3.5, replace with your actual input API cost - depends on the model, see https://openai.com/pricing
|
||||
input_cost= 0.002
|
||||
|
||||
# Custom output API cost - default value for gpt-3.5, replace with your actual input API cost - depends on the model, see https://openai.com/pricing
|
||||
output_cost= 0.002
|
||||
|
||||
# Batch size - adjust according to your API's limitations
|
||||
batchsize="10"
|
||||
|
||||
# Frequency penalty - adjust according to your needs
|
||||
#API link, leave blank to use OpenAI API
|
||||
api=""
|
||||
|
||||
#API key
|
||||
key=""
|
||||
|
||||
#Oranization key, make something up for self hosted or other API
|
||||
organization=""
|
||||
|
||||
#LLM model name, use gpt-3.5-turbo-1106 or gpt-3.5-turbo or gpt-4-1106-preview for OpenAI API
|
||||
#For text generation webui use gpt-3.5-turbo, for other API's consult their documentation
|
||||
model="gpt-4.1"
|
||||
|
||||
#The language to translate TO, Don't forget to change the prompt
|
||||
language="English"
|
||||
|
||||
#The timeout before disconnect error, 30 to 120 recommended
|
||||
timeout="120"
|
||||
|
||||
#The number of files to translate at the same time, 1 recommended for free or self hosted API or gpt-4
|
||||
fileThreads="1"
|
||||
|
||||
#The number of threads per file, 1 recommended for free or self hosted API or gpt-4
|
||||
threads="1"
|
||||
|
||||
#The wordwrap of dialogue text
|
||||
width="60"
|
||||
|
||||
#The wordwap of items and help text
|
||||
listWidth="100"
|
||||
|
||||
#The wordwap of items and help text
|
||||
noteWidth="75"
|
||||
|
||||
# Custom input API cost - default value for gpt-3.5, replace with your actual input API cost - depends on the model, see https://openai.com/pricing
|
||||
input_cost= 0.002
|
||||
|
||||
# Custom output API cost - default value for gpt-3.5, replace with your actual input API cost - depends on the model, see https://openai.com/pricing
|
||||
output_cost= 0.002
|
||||
|
||||
# Batch size - adjust according to your API's limitations
|
||||
batchsize="10"
|
||||
|
||||
# Frequency penalty - adjust according to your needs
|
||||
frequency_penalty= 0.2
|
||||
|
|
@ -255,7 +255,7 @@ def translatePlugin(data, pbar, filename, translatedList):
|
|||
data[i] = data[i].replace(originalString, translatedText)
|
||||
|
||||
# Quest Name
|
||||
regex = r'[\\]+"Titled[\\]+":[\\]+"(.*?)[\\]+"'
|
||||
regex = r'[\\]+"QuestName[\\]+":[\\]+"(.*?)[\\]+"'
|
||||
matchList = re.findall(regex, data[i])
|
||||
if len(matchList) > 0:
|
||||
for match in matchList:
|
||||
|
|
@ -291,7 +291,7 @@ def translatePlugin(data, pbar, filename, translatedList):
|
|||
data[i] = data[i].replace(originalString, translatedText)
|
||||
|
||||
# Quest Client
|
||||
regex = r'Requesterd[\\]+":[\\]+"(.*?)[\\]+"'
|
||||
regex = r'QuestClientName[\\]+":[\\]+"(.*?)[\\]+"'
|
||||
matchList = re.findall(regex, data[i])
|
||||
if len(matchList) > 0:
|
||||
for match in matchList:
|
||||
|
|
@ -324,7 +324,7 @@ def translatePlugin(data, pbar, filename, translatedList):
|
|||
data[i] = data[i].replace(originalString, translatedText)
|
||||
|
||||
# Quest Location
|
||||
regex = r'Placed[\\]+":[\\]+"(.*?)[\\]+"'
|
||||
regex = r'QuestLocation[\\]+":[\\]+"(.*?)[\\]+"'
|
||||
matchList = re.findall(regex, data[i])
|
||||
if len(matchList) > 0:
|
||||
for match in matchList:
|
||||
|
|
@ -357,7 +357,7 @@ def translatePlugin(data, pbar, filename, translatedList):
|
|||
data[i] = data[i].replace(originalString, translatedText)
|
||||
|
||||
# Quest Target
|
||||
regex = r'PlacedInformation[\\]+":[\\]+"(.*?)[\\]+"'
|
||||
regex = r'PlaceInformation[\\]+":[\\]+"(.*?)[\\]+"'
|
||||
matchList = re.findall(regex, data[i])
|
||||
if len(matchList) > 0:
|
||||
for match in matchList:
|
||||
|
|
@ -390,7 +390,7 @@ def translatePlugin(data, pbar, filename, translatedList):
|
|||
data[i] = data[i].replace(originalString, translatedText)
|
||||
|
||||
# Quest Summary
|
||||
regex = r'[\\]+"DetaildNote[\\]+":[\\]+"[\\]+"(.*?)[\\]+"[\\]+"'
|
||||
regex = r'[\\]+"QuestContent[\\]+":[\\]+"[\\]+"(.*?)[\\]+"[\\]+"'
|
||||
matchList = re.findall(regex, data[i])
|
||||
if len(matchList) > 0:
|
||||
for match in matchList:
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
Here are some vocabulary and terms so that you know the proper spelling and translation.
|
||||
```
|
||||
# Game Characters
|
||||
シリル (Cyril) - Female
|
||||
ジャヒカ (Jahika) - Female
|
||||
愛里沙 (Arisa) - Female
|
||||
|
||||
# Lewd Terms
|
||||
マンコ (pussy)
|
||||
|
|
@ -128,9 +127,6 @@ w ((lol))
|
|||
』 (』)
|
||||
|
||||
# Game Specific
|
||||
クーリア (Curia)
|
||||
デヴァンド (Devand)
|
||||
ツァフ荒地 (Tzaf Wasteland)
|
||||
エラトー密林 (Erato Jungle)
|
||||
エロザウルス (Erozaurus)
|
||||
|
||||
```
|
||||
Loading…
Reference in a new issue