diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2016-02-02 05:22:23 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2016-02-02 05:22:23 +0100 |
commit | 57a46e1e5c5aa9d10f35c85516ad877e6d744309 (patch) | |
tree | 0415b88fcfc6b6395365d0e58a1c2748727b12c1 | |
parent | 66219ba3688c13126bc8bc9d993377b2f22dafc0 (diff) | |
download | extbase-generator-cli-57a46e1e5c5aa9d10f35c85516ad877e6d744309.tar.gz extbase-generator-cli-57a46e1e5c5aa9d10f35c85516ad877e6d744309.tar.bz2 extbase-generator-cli-57a46e1e5c5aa9d10f35c85516ad877e6d744309.zip |
cleanup
-rwxr-xr-x | add_extbase_model.sh | 3 | ||||
-rwxr-xr-x | add_extbase_property.sh | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/add_extbase_model.sh b/add_extbase_model.sh index 9e0ac49..4dc9da1 100755 --- a/add_extbase_model.sh +++ b/add_extbase_model.sh @@ -114,7 +114,7 @@ cat > ${tca_file} << EOL <?php return array( 'ctrl' => array( - 'title' => 'LLL:EXT:${extension}/Resources/Private/Language/locallang_db.xlf:${tablename}', + 'title' => 'LLL:EXT:${extension}/Resources/Private/Language/locallang_db.xlf:${tablename}', 'label' => 'uid', 'tstamp' => 'tstamp', 'crdate' => 'crdate', @@ -144,7 +144,6 @@ return array( '1' => array('showitem' => ''), ), 'columns' => array( - 'sys_language_uid' => array( 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', diff --git a/add_extbase_property.sh b/add_extbase_property.sh index 87cbca8..8baca20 100755 --- a/add_extbase_property.sh +++ b/add_extbase_property.sh @@ -220,11 +220,13 @@ s/'label' => 'uid'/'label' => '${field}'/ } EOF + # Locallang fixes sed -i "s/.*<\/body>/\t\t\t<trans-unit id=\"${tablename}.${field}\">\n\t\t\t\t<source>${uproperty}<\/source>\n\t\t\t<\/trans-unit>\n&/" \ Resources/Private/Language/locallang.xlf \ Resources/Private/Language/locallang_db.xlf + sed -i "s/.*<\/body>/\t\t\t<trans-unit id=\"${field}.description\">\n\t\t\t\t<source>${field}<\/source>\n\t\t\t<\/trans-unit>\n&/" \ Resources/Private/Language/locallang_csh_${tablename}.xlf |