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

[BUG] PREHEAT_1_LABEL and PREHEAT_2_LABEL not defined for German language #13436

Closed
Uwe11 opened this issue Mar 19, 2019 · 14 comments
Closed

[BUG] PREHEAT_1_LABEL and PREHEAT_2_LABEL not defined for German language #13436

Uwe11 opened this issue Mar 19, 2019 · 14 comments

Comments

@Uwe11
Copy link

Uwe11 commented Mar 19, 2019

Description

language_de.h in bugfix-1.1.x uses PREHEAT_1_LABEL and PREHEAT_2_LABEL instead of the constants "PLA" and "ABS". But these two variables are not defined and lead to an error.

Steps to Reproduce

set language to "de" in configuration.h
#define LCD_LANGUAGE de

Compile the sketch

Additional Information

This is my first comment on github. Please excuse me, if not everything is perfect.

@Mav987
Copy link

Mav987 commented Mar 20, 2019

Hi Uwe,

you can help yourself by insert

#define PREHEAT_1_LABEL _UxGT("PLA")
#define PREHEAT_2_LABEL _UxGT("ABS")

in the file language_de.h

grafik

greeting andy

@Uwe11
Copy link
Author

Uwe11 commented Mar 20, 2019

Thanks Andy,
I already did.
But shouldn't we solve this issue for all?

I don't know, if it was ment to make "PLA" and "ABS" configurable. Then I would expect the definition for
PREHEAT_1_LABEL and PREHEAT_2_LABEL in configuration.h.
But as far as I've seen, only German language file uses this variables. I'm not sure why there were introduced.
Either define the name of the two materials in configuration.h for all languages or keep the text strait and fix with PLA and ABS.

BR
Uwe

@MoellerDi
Copy link
Contributor

IMHO it's already in the configuration.h by default:

// @section temperature

// Preheat Constants
#define PREHEAT_1_LABEL       "PLA"
#define PREHEAT_1_TEMP_HOTEND 180
#define PREHEAT_1_TEMP_BED     70
#define PREHEAT_1_FAN_SPEED     0 // Value from 0 to 255

#define PREHEAT_2_LABEL       "ABS"
#define PREHEAT_2_TEMP_HOTEND 240
#define PREHEAT_2_TEMP_BED    110
#define PREHEAT_2_FAN_SPEED     0 // Value from 0 to 255

see https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.0.x/Marlin/Configuration.h#L1386-L1395

Did you use the default configuration.h or one from an example config to build your firmware?

@kAdonis
Copy link
Contributor

kAdonis commented Mar 20, 2019

I think PREHEAT_1_LABEL and PREHEAT_2_LABEL are only used in bugfix-2.x
there is something mixed up, It should not be in language_de.h for bugfix-1.1.x
@Ludy87

@reloxx13
Copy link
Contributor

but again missing config files so we can just guess

the issue template is not just for fun written.

* Include a ZIP file containing your Configuration.handConfiguration_adv.h files.

@Ludy87
Copy link
Contributor

Ludy87 commented Mar 20, 2019

I have inadvertently entered, apologized.

Bugfix 1.1.x is getting outdated, but I touched the file, but unfortunately with errors.

I will write a new PR afterwards.

@Uwe11
Copy link
Author

Uwe11 commented Mar 20, 2019

ok, Thanks Ludy87!

Yes, we're taking about bugfix-1.1.x in the original version, like here on github. Therefor I thought it's not necessary to include the files here.

@kAdonis
Copy link
Contributor

kAdonis commented Mar 20, 2019

@Uwe11 I recommend switching to bugfix-2.x, as Ludy87 said, bugfix-1.1.x is getting outdated

@Uwe11
Copy link
Author

Uwe11 commented Mar 20, 2019

Yes, i know that 1.1 is getting outdated. Just updated from 1.1.1 to 1.1.9 (working) and tried also bugfix 1.1.x (not working)
Till yesterday I thougt 2.0 is ONLY for 32bit. Learned today, that it still supports 8bit.
But is it already so far to give it a try in real world?

@kAdonis
Copy link
Contributor

kAdonis commented Mar 20, 2019

But is it already so far to give it a try in real world?

Absolutely!

@Ludy87
Copy link
Contributor

Ludy87 commented Mar 20, 2019

PR was created

@Ludy87
Copy link
Contributor

Ludy87 commented Mar 21, 2019

@Uwe11, du kannst hier zu machen. Der Fehler ist mit der PR gefixt.

@Uwe11
Copy link
Author

Uwe11 commented Mar 21, 2019

besten Dank!

@Uwe11 Uwe11 closed this as completed Mar 21, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants