/dports/textproc/translate-toolkit/translate-toolkit-3.5.1/translate/convert/ |
H A D | xliff2po.py | 48 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 D | test_resx2po.py | 145 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 D | test_oo2po.py | 176 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 D | accesskey.py | 68 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 D | test_po2tmx.py | 158 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 D | test_ts2po.py | 104 assert pofile.units[1].getnotes("developer") == "(obsolete)" 106 assert "_ OBSOLETE" not in pofile.units[1].getnotes() 140 pofile.units[1].getnotes()
|
H A D | test_xliff2po.py | 99 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 D | tbx2po.py | 42 term.setcontext(tbxunit.getnotes("definition")) 43 term.addnote("Part of speech: %s" % tbxunit.getnotes("pos"), "developer")
|
H A D | po2ts.py | 40 comment = inputunit.getnotes("translator") 53 elif inputunit.getnotes("developer") == "(obsolete)":
|
H A D | po2resx.py | 60 autocomment = inputunit.getnotes("developer") 64 transcomment = inputunit.getnotes("translator")
|
H A D | po2xliff.py | 52 comment = inputunit.getnotes("developer") 62 comment = inputunit.getnotes("translator")
|
H A D | po2mozlang.py | 64 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 D | test_mozilla_lang.py | 65 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 D | test_cpo.py | 66 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 D | test_po.py | 104 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 D | test_poxliff.py | 117 xlifffile.units[0].getnotes() 120 assert xlifffile.units[0].getnotes("developer") == "azoozoo come back!" 122 xlifffile.units[0].getnotes("po-translator")
|
H A D | test_xliff.py | 22 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 D | test_fluent.py | 88 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 D | fluent.py | 149 return (self._type)(self.getnotes()) 163 if self.getnotes(): 164 comment = ast.Comment(self.getnotes())
|
H A D | pocommon.py | 76 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 D | externallib_test.php | 163 $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 D | externallib_test.php | 163 $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 D | externallib_test.php | 163 $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 D | phppo2pypo.py | 49 developer_notes = unit.getnotes(origin="developer") 50 translator_notes = unit.getnotes(origin="translator")
|
H A D | pypo2phppo.py | 53 developer_notes = unit.getnotes(origin="developer") 54 translator_notes = unit.getnotes(origin="translator")
|