Jump to content

MOD Translation Information & Tools


varenne

Recommended Posts

  • 2 months later...
Posted

The google translate feature do not work for me.

 

C:\Users\Username\Desktop\Files\Bethesda Softworks\Oblivion\Data\DarkBloodline.esp :

Plugin does not need to change.

Done!

 

I get this if I want to auto-translate from Russian to English.

 

 

Please Set Google target language option.

 

I get this when I want to google translate some line. Even if I set the language in Extras -> Google Translate Option it does not work. The language option in Google Translate Option does not get saved.

 

Well I guess I will have to use browser translator...

Posted

The google translate feature do not work for me.

 

C:\Users\Username\Desktop\Files\Bethesda Softworks\Oblivion\Data\DarkBloodline.esp :

Plugin does not need to change.

Done!

 

I get this if I want to auto-translate from Russian to English.

 

 

Please Set Google target language option.

 

I get this when I want to google translate some line. Even if I set the language in Extras -> Google Translate Option it does not work. The language option in Google Translate Option does not get saved.

 

Well I guess I will have to use browser translator...

 

Are you allowing Google to save cookies and run scripts?

  • 1 month later...
Posted

This is kind of semi-related topic here, but I think worth mentioning.

Anyone knows better way let us know, As I don't know much about notepadd nor know about python thingy just managed to get this to work.

 

Here's a quick guide to let your notepad++ automatically recognize TES Script language on startup. (Since you cannot set an user-defined language as the default)

 

First off you need notepad python script plugin, install it

Grab it here

http://sourceforge.net/projects/npppythonscript/

 

Then download the Modeline Parser, install it as well.

http://sourceforge.net/projects/npppythonplugsq/files/

 

Now for the setting up.

 

1.Open Notepad++.

See the menu above, Plugins -> Python Script -> Configuration

you see 'Initilisation' is set to LAZY at the bottom left. Change it to 'ATSTARTUP'

 

2.Open up your startup.py

It's in the plugins\PythonScript\scripts folder. You can edit it with notepad++ of course

Add following lines below

import ModelineParser_dll
import ModelineFoldmethod        # If you want to use the example option to fold based on indent
import ModelineLanguageDetectors # If you want to use the example language detectors
ModelineParser_dll.modeline_start()

And save.

 

3.Open up ModelineLanguageDetector.py

It's in the plugins\PythonScript\lib folder

 

Add following lines somewhere in the script

# OBSE detector (content based)
ModelineParser_dll.modeline_add_preparse(lambda settings, name, path, text:
text.startswith('scn') and settings.__setitem__('language','user3')
)

 

This means that every text file starts with scn should use 'user3' language definition.

So you need to confirm what is 'user3'

Those codes are at the bottom

Mine looks like this

ModelineParser_dll.modeline_add_languages({
'user1': 'My language 1',  # name of language as used in modeline/shebang : name of language in menu
'user2': 'My language 2',
'user3': 'TES Script'
})

 

So from now on every time you open a file start with the text 'scn' then Notepad++ will read it as TES Script

(Does not work for ini files)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...