Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel naustrian is not detected as austrian german #213

Closed
456Xander opened this issue Jan 6, 2023 · 2 comments
Closed

babel naustrian is not detected as austrian german #213

456Xander opened this issue Jan 6, 2023 · 2 comments
Assignees
Labels
1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-confirmed Issue status: Confirmed, reproducible bug in LTeX 3-fixed Issue resolution: Issue has been fixed on the develop branch
Milestone

Comments

@456Xander
Copy link

Describe the bug
When using LaTeX and babel, the language should be detected automatically.
Using babel with ngerman, the language is correctly detected as de-DE.
However, when writing documents in austrian German (babel naustrian), the language gets wrongly detected as en-US.
The detected language should be de-AT.

Steps to reproduce
Create a Latex document and use

\usepackage[naustrian]{babel}

Expected behavior
Language gets detected as de-AT.

Sample document

\usepackage[naustrian]{babel}
\documentclass[a4paper]{scrartcl}
\begin{document}
Das ist ein korrekter Satz.
\end{document}

LTeX configuration

Using ltex with neovim and nvim-lspconfig. Configuration is provided by Spacevim.

LTeX LS log
Paste the log (output) of LTeX LS here:

[ERROR][2023-01-06 12:27:53] .../vim/lsp/rpc.lua:733	"rpc"	"ltex-ls"	"stderr"	"Jan 06, 2023 12:27:53 PM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked\nFINE: Checking the following text in language 'en-US' via LanguageTool: \" Das ist ein korrekter Satz. \"\n"
[ERROR][2023-01-06 12:27:53] .../vim/lsp/rpc.lua:733	"rpc"	"ltex-ls"	"stderr"	"Jan 06, 2023 12:27:53 PM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment\nFINE: Obtained 5 rule matches\n"

Version information
List here the version information of the relevant software.

  • Operating system: Arch Linux
  • ltex-ls: 15.2.0-1
  • Java: 17.0.5
@456Xander 456Xander added 1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label) labels Jan 6, 2023
casenull added a commit to casenull/ltex-ls that referenced this issue Jan 10, 2023
valentjn added a commit that referenced this issue Feb 12, 2023
@valentjn valentjn added 2-confirmed Issue status: Confirmed, reproducible bug in LTeX and removed 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label) labels Feb 12, 2023
@valentjn valentjn self-assigned this Feb 12, 2023
@valentjn valentjn added this to the 16.0.0 milestone Feb 12, 2023
@valentjn
Copy link
Owner

Fixed in 1a903cd.

@valentjn valentjn added the 3-fixed Issue resolution: Issue has been fixed on the develop branch label Feb 12, 2023
@github-actions
Copy link

This issue is now fixed on develop. The fix will be included in the next release of LTEX.

If you don't want to wait, you can try out the nightly pre-release tomorrow. Nightly pre-releases are published every morning at around 4am UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-confirmed Issue status: Confirmed, reproducible bug in LTeX 3-fixed Issue resolution: Issue has been fixed on the develop branch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants