Translation:If I were hungry, I would have eaten something.
I can't get the grip of this, especially because my example sentence above (from Wikipedia): "If we were soldiers, we wouldn't have done it like that." I would translate to Hvis vi var soldater, ville vi ikke ha gjort det på den måten. Which to me is identical to the Duolingo example...
Conditionals can be confusing but there is a simple formula. You should always think about the situation in reality. If the reality is in present time, the conditional is in Past Tense; if the reality is already in the past the conditional is in the Past perfect. Your example: If we were soldiers (reality: but we ARE not - Present) we wouldn't have don't it (reality: but they DID-Past) - this is mixed conditional because in reality one of the clauses is still valid in the present while the other one is already in the past.
Duolingo example: If I were hungry (reality: * I am not hungry*??) I would have eaten something (reality: I didn't eat anything). This sentence makes no sense as you are combining present and past for one event that took place in the past. Correct: If I had been hungry (reality: I wasn't hungry - Past) I would have eaten something ( reality : I didn't eat - Past).
Also, another way of interpreting this sentence (as ryan pointed out) is if you think the reality is in the present. I I were hungry (reality: I AM not - Present) I would eat ( reality: I don't want to - Present).
Hope I didn't make it too complicating because in reality it's very simple :-)
I had my boyfriend read over this to try to explain it to me. And after some arguing he suggests that it is my attempt at a context that refers to the past that messes this up.
His dialect is much closer to bokmål, and he would never say hvis jeg var sulten... (past tense) if it was like in my example context where the situation is in the past, he would say hvis jeg hadde vært sulten... (past perfect tense).
But if the context is in the reality present, he is sitting at the table and his mother is nagging him to eat something, then his reply could be hvis jeg var sulten.... If I were hungry (but I'm not PRESENT), I would have eaten something (but I didn't PAST). Putting the condition clause in past tense and the consequence/main clause in conditional perfect tense.
Am I closer to understanding this then or am I still trying to bend things to fit my view?
Your boyfriend is right. :-) You're putting a clearly past event into present for no reason. In the if-clause of a mixed conditional, the event that is still valid in present is something PERMANENT (it was valid in both past and now present) which encompasses one particular TEMPORARY event that happened in the past and is finished - If I were a soldier (permanent - I am not - I wasn't a soldier in the past and I am not that in the present) I wouldn't have done it (temporary one event that happened and finished). Other example: If you were taller (permanent: I am not) I would have been able to reach that branch (one temporary event in the past).
So to go back to your question and your sentence, the only way your sentence "If I were hungry I would have eaten." can be interpreted is if you see the reality of you not being hungry as a permanent thing (it was valid both in past and present). So unless the speaker has some sort of a medical condition of not feeling hunger the sentence is illogical. Hope this makes things more clear!
No, that would be, "If I had been hungry". "If I were hungry" refers to a present time frame. https://en.wikipedia.org/wiki/English_conditional_sentences
Reading this level of lingo doesn't come easy to me, but under Mixed conditional it says:
"When the consequence refers to the past, but the condition is not expressed as being limited to the past, the condition clause is expressed as in the second conditional (past, but not past perfect), while the main clause is in the conditional perfect as in the third conditional: If we were soldiers, we wouldn't have done it like that."
Doesn't that apply? (And I learned a new word reading all that! Just splendid:-))
I know. I have it on my to do list, with the other conditionals that probably need some fixing (there's at least one more that the English speakers complain about). In the discussion on that other sentence (Jeg ville ikke ha spist det om jeg var deg) we have concluded that the Norwegian conditional doesn't match the English, well, it does a little bit but with alternating conditions.
So it's a daunting project:( These long posts took me an hour each to compile, and I still don't really understand it. I've just gotten real careful about wishing...
I find the sentence perfectly ok (in English, anyway :) ): "no, mom, I am currently not hungry. If I were, I would have eaten something in the restaurant". It's an interesting case because if that had happened, then "I" would still not be hungry, although for a different reason. I find it a perfect way to express that something is impossible. Reductio ad absurdum - I cannot be hungry because if I were, I would have eaten already, leaving me in a non-hungry state. But then again, people tend to have trouble following my logic...
Neither sentence is grammatically correct. adysah does a good job of dealing with both the Norwegian and English deficiencies. Notwithstanding the fact that there are problems, I agree with KarlHenrik12. The sentences suggested by Giorgio182480 would not be accepted in Western Canada. The time frames create problems that don't exist in KarlHenrik12's sentences.
The English sentence is fine - it's just in the subjunctive mood, that's all (most famous example in English - "if I were a rich man"). I can't speak for Western Canada, of course, but in the UK it's a perfectly grammatical sentence. This link explains it very well (you have to scroll approx halfway down): https://www.lexico.com/en/moods