Home
last modified time | relevance | path

Searched refs:getnotes (Results 1 – 25 of 74) sorted by relevance

123

/dports/textproc/translate-toolkit/translate-toolkit-3.5.1/translate/convert/
H A Dxliff2po.py48 trancomments = transunit.getnotes("translator")
53 autocomments = transunit.getnotes("developer")
73 if transunit.getnotes("translator"):
75 transunit.getnotes("translator"),
79 if transunit.getnotes("developer"):
81 transunit.getnotes("developer"),
H A Dtest_resx2po.py145 assert po_result.units[1].getnotes("developer") == "This is a comment"
146 assert po_result.units[2].getnotes("developer") == ""
164 assert po_result.units[1].getnotes("developer") == "This is a developer comment"
166 po_result.units[1].getnotes("translator") == "This is a translator comment"
168 assert po_result.units[2].getnotes("developer") == ""
169 assert po_result.units[2].getnotes("translator") == ""
H A Dtest_oo2po.py176 assert comment in textunit.getnotes("developer")
179 assert comment in quickhelpunit.getnotes("developer")
182 assert comment in titleunit.getnotes("developer")
195 assert textunit.getnotes("developer") == ""
198 assert quickhelpunit.getnotes("developer") == ""
201 assert titleunit.getnotes("developer") == ""
H A Daccesskey.py68 target_unit.addnote(label_unit.getnotes("developer"), "developer")
69 target_unit.addnote(accesskey_unit.getnotes("developer"), "developer")
70 target_unit.addnote(label_unit.getnotes("translator"), "translator")
71 target_unit.addnote(accesskey_unit.getnotes("translator"), "translator")
H A Dtest_po2tmx.py158 assert len(unit[0].getnotes()) == 0
169 assert unit[0].getnotes() == "My comment rules"
180 assert unit[0].getnotes() == "../PuzzleFourSided.h:45"
191 assert unit[0].getnotes() == "csharp-format"
H A Dtest_ts2po.py104 assert pofile.units[1].getnotes("developer") == "(obsolete)"
106 assert "_ OBSOLETE" not in pofile.units[1].getnotes()
140 pofile.units[1].getnotes()
H A Dtest_xliff2po.py99 assert unit.getnotes("translator") == "Couldn't do it"
120 assert unit.getnotes("translator") == "Couldn't do\nit"
143 assert unit.getnotes("developer") == "Note that this is garbage"
164 assert unit.getnotes("developer") == "Note that this is\ngarbage"
H A Dtbx2po.py42 term.setcontext(tbxunit.getnotes("definition"))
43 term.addnote("Part of speech: %s" % tbxunit.getnotes("pos"), "developer")
H A Dpo2ts.py40 comment = inputunit.getnotes("translator")
53 elif inputunit.getnotes("developer") == "(obsolete)":
H A Dpo2resx.py60 autocomment = inputunit.getnotes("developer")
64 transcomment = inputunit.getnotes("translator")
H A Dpo2xliff.py52 comment = inputunit.getnotes("developer")
62 comment = inputunit.getnotes("translator")
H A Dpo2mozlang.py64 if unit.getnotes("developer"):
65 target_unit.addnote(unit.getnotes("developer"), "developer")
/dports/textproc/translate-toolkit/translate-toolkit-3.5.1/translate/storage/
H A Dtest_mozilla_lang.py65 assert "# TAG: goodbye" in unit.getnotes(origin="developer").split("\n")
109 assert "Comment" in unit.getnotes()
120 assert "Comment" in unit.getnotes()
252 assert "# TAG: important_tag" in store.units[0].getnotes(
269 assert "First comment" in store.units[0].getnotes(origin="developer").split(
272 assert "Second comment" in store.units[0].getnotes(origin="developer").split(
275 assert "Another comment" in store.units[0].getnotes(origin="developer").split(
278 assert "# TAG: another_important_tag" in store.units[0].getnotes(
288 assert "# MAX_LENGTH: 80" in store.units[0].getnotes(origin="developer").split(
H A Dtest_cpo.py66 assert unit.getnotes() == ""
68 assert unit.getnotes("translator") == "Which meaning of file?"
69 assert unit.getnotes("developer") == ""
71 assert unit.getnotes("developer") == "Verb"
73 assert unit.getnotes("translator") == "Which meaning of file?\nThank you"
74 assert unit.getnotes() == "Which meaning of file?\nThank you\nVerb"
76 unit.getnotes("devteam")
82 assert unit.getnotes() == "# Double commented comment"
H A Dtest_po.py104 original_notes = unit.getnotes(origin="translator")
108 print(unit.getnotes())
112 assert unit.getnotes(origin="translator") == original_notes
115 notes = unit.getnotes(origin="translator")
694 assert unit.getnotes() == "Test comment"
698 assert unit.getnotes() == "Test comment 2"
726 assert unit.getnotes() == "Test multiline context"
733 assert unit.getnotes() == "Test quotes"
763 assert unit.getnotes() == "Test comment"
767 assert unit.getnotes() == "Test comment 2"
[all …]
H A Dtest_poxliff.py117 xlifffile.units[0].getnotes()
120 assert xlifffile.units[0].getnotes("developer") == "azoozoo come back!"
122 xlifffile.units[0].getnotes("po-translator")
H A Dtest_xliff.py22 original_notes = unit.getnotes(origin="translator")
29 assert unit.getnotes(origin="translator") == original_notes
32 notes = unit.getnotes(origin="translator")
278 assert unit.getnotes() == "Please buy bread"
287 assert unit.getnotes(origin="Mom") == "Please buy milk"
294 assert unit.getnotes(origin="Dad") == "Don't forget the beer"
297 not unit.getnotes(origin="Bob")
303 unit.getnotes()
H A Dtest_fluent.py88 assert fluent_unit.getnotes() == "A comment"
104 assert fluent_unit.getnotes() == "A comment\nwith a second line!"
158 assert actual.getnotes().startswith(expected[1])
H A Dfluent.py149 return (self._type)(self.getnotes())
163 if self.getnotes():
164 comment = ast.Comment(self.getnotes())
H A Dpocommon.py76 if text not in self.getnotes(origin="translator"):
81 notes = self.getnotes(origin="translator").split("\n")
99 notestring = self.getnotes(origin="translator")
/dports/www/moodle310/moodle/notes/tests/
H A Dexternallib_test.php163 $getnotes = core_notes_external::get_notes($gnotes);
164 … $getnotes = external_api::clean_returnvalue(core_notes_external::get_notes_returns(), $getnotes);
168 $this->assertEquals($cnote['userid'], $getnotes["notes"][0]["userid"]);
169 $this->assertEquals($cnote['text'], $getnotes["notes"][0]["text"]);
170 $this->assertEquals($cnote['userid'], $getnotes["notes"][1]["userid"]);
171 $this->assertEquals($cnote['text'], $getnotes["notes"][1]["text"]);
172 $this->assertEquals($cnote['userid'], $getnotes["notes"][2]["userid"]);
173 $this->assertEquals($cnote['text'], $getnotes["notes"][2]["text"]);
174 $this->assertEquals("note", $getnotes["warnings"][0]["item"]);
175 $this->assertEquals(33, $getnotes["warnings"][0]["itemid"]);
[all …]
/dports/www/moodle311/moodle/notes/tests/
H A Dexternallib_test.php163 $getnotes = core_notes_external::get_notes($gnotes);
164 … $getnotes = external_api::clean_returnvalue(core_notes_external::get_notes_returns(), $getnotes);
168 $this->assertEquals($cnote['userid'], $getnotes["notes"][0]["userid"]);
169 $this->assertEquals($cnote['text'], $getnotes["notes"][0]["text"]);
170 $this->assertEquals($cnote['userid'], $getnotes["notes"][1]["userid"]);
171 $this->assertEquals($cnote['text'], $getnotes["notes"][1]["text"]);
172 $this->assertEquals($cnote['userid'], $getnotes["notes"][2]["userid"]);
173 $this->assertEquals($cnote['text'], $getnotes["notes"][2]["text"]);
174 $this->assertEquals("note", $getnotes["warnings"][0]["item"]);
175 $this->assertEquals(33, $getnotes["warnings"][0]["itemid"]);
[all …]
/dports/www/moodle39/moodle/notes/tests/
H A Dexternallib_test.php163 $getnotes = core_notes_external::get_notes($gnotes);
164 … $getnotes = external_api::clean_returnvalue(core_notes_external::get_notes_returns(), $getnotes);
168 $this->assertEquals($cnote['userid'], $getnotes["notes"][0]["userid"]);
169 $this->assertEquals($cnote['text'], $getnotes["notes"][0]["text"]);
170 $this->assertEquals($cnote['userid'], $getnotes["notes"][1]["userid"]);
171 $this->assertEquals($cnote['text'], $getnotes["notes"][1]["text"]);
172 $this->assertEquals($cnote['userid'], $getnotes["notes"][2]["userid"]);
173 $this->assertEquals($cnote['text'], $getnotes["notes"][2]["text"]);
174 $this->assertEquals("note", $getnotes["warnings"][0]["item"]);
175 $this->assertEquals(33, $getnotes["warnings"][0]["itemid"]);
[all …]
/dports/textproc/translate-toolkit/translate-toolkit-3.5.1/translate/tools/
H A Dphppo2pypo.py49 developer_notes = unit.getnotes(origin="developer")
50 translator_notes = unit.getnotes(origin="translator")
H A Dpypo2phppo.py53 developer_notes = unit.getnotes(origin="developer")
54 translator_notes = unit.getnotes(origin="translator")

123