Active
Project:
Simplenews
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Dec 2011 at 14:10 UTC
Updated:
2 Jan 2015 at 22:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
miro_dietikerTagging as test candidate.
Related to
#1177640: Add own explicit base url to send reliably
Comment #2
berdirOk, attaching a first patch.
- Added tests for creating and sending newsletters in different languages.
- Not perfect yet, but e.g. makes sure that categories are translated, the correct node is used and that url rewriting works.
- Fixed a few bugs related to this and also unifies the user/language context handling in the source class.
Comment #4
berdirFixed those notices. Although it's strange that getLanguage() returns an empty string, should be the default language instead. Will need to have a look at that.
Note that the new tests are currently not executed by the testbot because they're in the SimplenewsI18nTestCase class, which needs i18n but the testbot currently doesn't support soft/test dependencies. The problem is that, although content translation works without i18n, taxonomy translation doesn't.
Comment #5
berdirCommited.
It might not be perfect yet, but it's quite an improvement, fixes the existing i18n tests, adds new ones and also fixes an unrelated bug (including test coverage for that one).
Keeping open to investigate the getLanguage() behavior.
Comment #6
miro_dietikerPushing...