AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Translation Request (https://forums.alliedmods.net/forumdisplay.php?f=25)
-   -   AMXX Language Files Analyzer (https://forums.alliedmods.net/showthread.php?t=153283)

xPaw 03-21-2011 08:52

AMXX Language Files Analyzer
 
This simple tool i wrote in 1 hour allows you to see mistakes in your translation files and fix them if there are any :) It's quite simple and still needs more stuff to do, feel free to report bugs or say things that it didn't detect etc..

https://lab.xpaw.me/langanalyzer/
Example output:
https://i.imgur.com/KtCTvool.png

Arkshine 03-21-2011 09:10

Re: AMXX Language Files Analyzer
 
Not bad, though it seems it doesn't support blocks of texts, like :

Key :
Blablabla
Blablabla
:

xPaw 03-21-2011 09:19

Re: AMXX Language Files Analyzer
 
Quote:

Originally Posted by Arkshine (Post 1436941)
Not bad, though it seems it doesn't support blocks of texts, like :

Key :
Blablabla
Blablabla
:

Yeah i know, i didn't do support for multilines yet. If you can, show me example of lang file with such structure so i can test it :)

Arkshine 03-21-2011 09:21

Re: AMXX Language Files Analyzer
 
gungame ;)

xPaw 03-21-2011 09:39

Re: AMXX Language Files Analyzer
 
I have implented a fix for multilines, tell me if it works correct now.

Arkshine 03-21-2011 10:28

Re: AMXX Language Files Analyzer
 
It seems ok now. You should try to group or something. Like gungame.txt is big and has a lot of errors/warnings, grouping for example by language would be more readable.

xPaw 03-21-2011 11:42

Re: AMXX Language Files Analyzer
 
Quote:

Originally Posted by Arkshine (Post 1437014)
It seems ok now. You should try to group or something. Like gungame.txt is big and has a lot of errors/warnings, grouping for example by language would be more readable.

Sounds like a good idea, i will try looking into it.

xPaw 03-21-2011 13:10

Re: AMXX Language Files Analyzer
 
Um okay, i tried groupping them, should look better now.

BAILOPAN 03-21-2011 13:15

Re: AMXX Language Files Analyzer
 
Nice idea!

ConnorMcLeod 03-21-2011 13:23

Re: AMXX Language Files Analyzer
 
stats_dod.txt contains some errors :mrgreen:

Arkshine 03-21-2011 13:50

Re: AMXX Language Files Analyzer
 
Way more readable like this. Good job.

xPaw 03-21-2011 15:49

Re: AMXX Language Files Analyzer
 
Quote:

Originally Posted by BAILOPAN (Post 1437113)
Nice idea!

Derp, didn't expect to see you here :bacon!:

fysiks 03-21-2011 20:36

Re: AMXX Language Files Analyzer
 
The "no default key" seems to be redundant.

xPaw 03-22-2011 05:54

Re: AMXX Language Files Analyzer
 
Quote:

Originally Posted by fysiks (Post 1437381)
The "no default key" seems to be redundant.

Abit, but its based on [en] to check other languages for missing keys and such things.

Xalus 03-22-2011 12:11

Re: AMXX Language Files Analyzer
 
Maybe add a function under it

Based on:
& U can put for example [NL] there & default its [en]

xPaw 03-22-2011 12:40

Re: AMXX Language Files Analyzer
 
Quote:

Originally Posted by Xalus (Post 1437655)
Maybe add a function under it

Based on:
& U can put for example [NL] there & default its [en]

What? You mean, textfield to define default language?

Maybe we can get this sticky?

Xalus 03-22-2011 15:31

Re: AMXX Language Files Analyzer
 
Quote:

Abit, but its based on [en] to check other languages for missing keys and such things.
So the player can set another for example [NL] as based.

(Bad english :|)

But for the rest,

Looks awesome!

fysiks 03-22-2011 18:08

Re: AMXX Language Files Analyzer
 
Maybe make a downloadable semi-fixed version. Meaning that you remake the file with all keys in all languages while leaving the keys that were missing originally blank so that the author can go through and see how much and which keys are missing just by scrolling through the file.

xPaw 03-22-2011 20:14

Re: AMXX Language Files Analyzer
 
Quote:

Originally Posted by fysiks (Post 1437827)
Maybe make a downloadable semi-fixed version. Meaning that you remake the file with all keys in all languages while leaving the keys that were missing originally blank so that the author can go through and see how much and which keys are missing just by scrolling through the file.

I do not want to break anyone's encoding and fuckup the language file it self, so i don't really want to practice on that.

crazyeffect 06-13-2011 03:19

Re: AMXX Language Files Analyzer
 
Any chances on making this for sourcemod? :)

xPaw 06-14-2011 06:54

Re: AMXX Language Files Analyzer
 
Quote:

Originally Posted by crazyeffect (Post 1486977)
Any chances on making this for sourcemod? :)

Hm.. I might look into that later.

xPaw 08-14-2011 12:30

Re: AMXX Language Files Analyzer
 
Fixed a bug where it was ignoring last language section.

claudiuhks 09-23-2012 03:32

Re: AMXX Language Files Analyzer
 
PHP Code:

[en]
XA puta/\\'\'\\\\'
[\\]
XA === 

It sais that this has no errors.
So, my suggestion is: A space before '=' and a space after is required!

PHP Code:

XA === // Incorrect
XA = == // Correct 


xPaw 10-01-2012 09:54

Re: AMXX Language Files Analyzer
 
Quote:

Originally Posted by claudiuhks (Post 1804440)
PHP Code:

[en]
XA puta/\\'\'\\\\'
[\\]
XA === 

It sais that this has no errors.
So, my suggestion is: A space before '=' and a space after is required!

PHP Code:

XA === // Incorrect
XA = == // Correct 


Added.

xPaw 06-06-2014 12:34

Re: AMXX Language Files Analyzer
 
I've moved the tool to another url and fixed a couple of bugs while at it.

Kia 06-06-2014 12:53

Re: AMXX Language Files Analyzer
 
Nice. Glad to see you back xPaw.

Mordekay 12-24-2015 01:41

Re: AMXX Language Files Analyzer
 
Just searched again for this thread to check if i completed the correct lang-file.
This should be sticky in the translation request forums.

xPaw 02-04-2016 04:47

Re: AMXX Language Files Analyzer
 
I've published the sourcecode for this tool: https://github.com/xPaw/AMXX-Language-Analyzer


All times are GMT -4. The time now is 17:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.