Vexatos / RTFM

A Markdown-Based Custom Manual
Other
3 stars 2 forks source link

%LANGUAGE% does not always parse #12

Closed thePalindrome closed 6 years ago

thePalindrome commented 6 years ago

In the pack DarkAge on atlauncher, rtfm is used for the manual (shocker, I know) but since the default path is %LANGUAGE%/filename, and %LANGUAGE% does not register, I get errors stating that "%LANGUAGE%/metallurgy.md" does not exist.

Weirdly, the initial index page works just fine, so I'm not sure exactly where the issue lies.

I am reporting this from Linux, so that may have something to do with it, but I would appreciate a fix for this.

thePalindrome commented 6 years ago

Another thing to consider:

DarkAge only provided en_us (the default language for minecraft used as a fallback anyway), so it might be a good idea to replace %LANGUAGE% with en_us if the file lookup fails the first time.

thePalindrome commented 6 years ago

Turns out the actual culprit was mis-capitalized files in the config, not the %LANGUAGE% parsing. Sorry for troubling you.