Ticket #292: translatable.patch
| File translatable.patch, 6.9 kB (added by momo-i, 4 months ago) |
|---|
-
lib/install.php
195 195 $db_results = mysql_query($sql); 196 196 } 197 197 198 // ajax menu translatable 199 $sql = "INSERT INTO `preference` VALUES "; 200 $sql .= "(1,'download','0','" . _('Allow Downloads') . "',100,'boolean','" . _('options') . "'),"; 201 $sql .= "(4,'popular_threshold','10','" . _('Popular Threshold') . "',25,'integer','" . _('interface') . "'),"; 202 $sql .= "(19,'sample_rate','32','" . _('Transcode Bitrate') . "',25,'string','" . _('streaming') . "'),"; 203 $sql .= "(22,'site_title','" . _('Ampache :: Pour l\'Amour de la Musique') . "','Website Title',100,'string','" . _('system') . "'),"; 204 $sql .= "(23,'lock_songs','0','" . _('Lock Songs') . "',100,'boolean','" . _('system') . "'),"; 205 $sql .= "(24,'force_http_play','1','" . _('Forces Http play regardless of port') . "',100,'boolean','" . _('system') . "'),"; 206 $sql .= "(25,'http_port','80','" . _('Non-Standard Http Port') . "',100,'integer','" . _('system') . "'),"; 207 $sql .= "(41,'localplay_controller','0','" . _('Localplay Type') . "',100,'special','" . _('options') . "'),"; 208 $sql .= "(29,'play_type','stream','" . _('Type of Playback') . "',25,'special','" . _('streaming') . "'),"; 209 $sql .= "(31,'lang','" . Config::get('lang') . "','" . _('Language') . "',100,'special','" . _('interface') . "'),"; 210 $sql .= "(32,'playlist_type','m3u','Playlist Type',100,'special','playlist'),"; 211 $sql .= "(33,'theme_name','classic','" . _('Theme') . "',0,'special','" . _('interface') . "'),"; 212 $sql .= "(34,'ellipse_threshold_album','27','" . _('Album Ellipse Threshold') . "',0,'integer','" . _('interface') . "'),"; 213 $sql .= "(35,'ellipse_threshold_artist','27','" . _('Artist Ellipse Threshold') . "',0,'integer','" . _('interface') . "'),"; 214 $sql .= "(36,'ellipse_threshold_title','27','" . _('Title Ellipse Threshold') . "',0,'integer','" . _('interface') . "'),"; 215 $sql .= "(51,'offset_limit','50','" . _('Offset Limit') . "',5,'integer','" . _('interface') . "'),"; 216 $sql .= "(40,'localplay_level','0','" . _('Localplay Access') . "',100,'special','" . _('options') . "'),"; 217 $sql .= "(44,'allow_stream_playback','1','" . _('Allow Streaming') . "',100,'boolean','" . _('system') . "'),"; 218 $sql .= "(45,'allow_democratic_playback','0','" . _('Allow Democratic Play') . "',100,'boolean','" . _('system') . "'),"; 219 $sql .= "(46,'allow_localplay_playback','0','" . _('Allow Localplay Play') . "',100,'boolean','" . _('system') . "'),"; 220 $sql .= "(47,'stats_threshold','7','" . _('Statistics Day Threshold') . "',25,'integer','" . _('interface') . "'),"; 221 $sql .= "(49,'min_object_count','1','" . _('Min Element Count') . "',5,'integer','" . _('interface') . "'),"; 222 $sql .= "(52,'rate_limit','8192','" . _('Rate Limit') . "',100,'integer','" . _('streaming') . "'),"; 223 $sql .= "(53,'playlist_method','default','" . _('Playlist Method') . "',5,'string','" . _('playlist') . "'),"; 224 $sql .= "(55,'transcode','default','" . _('Transcoding') . "',25,'string','" . _('streaming') . "'),"; 225 $sql .= "(57,'tags_userlist','','" . _('User to track') . "', 0, 'string', '" . _('tags') . "')"; 226 $db_results = mysql_query($sql); 227 228 $sql = "INSERT INTO `user_preference` VALUES "; 229 $sql .= "(-1,1,'0'),(-1,4,'10'),(-1,19,'32'),"; 230 $sql .= "(-1,22,'" . _('Ampache :: Pour l\'Amour de la Musique') . "'),"; 231 $sql .= "(-1,23,'0'),(-1,24,'1'),(-1,25,'80'),(-1,41,'0'),"; 232 $sql .= "(-1,29,'" . _('stream') . "'),"; 233 $sql .= "(-1,31,'" . Config::get('lang') . "'),"; 234 $sql .= "(-1,32,'m3u'),"; 235 $sql .= "(-1,33,'classic'),"; 236 $sql .= "(-1,34,'27'),(-1,35,'27'),(-1,36,'27'),(-1,51,'50'),(-1,40,'0'),(-1,44,'1'),"; 237 $sql .= "(-1,45,'0'),(-1,46,'0'),(-1,47,'7'),(-1,49,'1'),(-1,52,'8192'),(-1,53,'default'),(-1,55,'default')"; 238 $db_results = mysql_query($sql); 239 198 240 return true; 199 241 200 242 } // install_insert_db -
sql/ampache.sql
485 485 SET character_set_client = @saved_cs_client; 486 486 487 487 -- 488 -- Dumping data for table `preference`489 --490 491 LOCK TABLES `preference` WRITE;492 /*!40000 ALTER TABLE `preference` DISABLE KEYS */;493 INSERT INTO `preference` VALUES (1,'download','0','Allow Downloads',100,'boolean','options'),(4,'popular_threshold','10','Popular Threshold',25,'integer','interface'),(19,'sample_rate','32','Transcode Bitrate',25,'string','streaming'),(22,'site_title','Ampache :: Pour l\'Amour de la Musique','Website Title',100,'string','system'),(23,'lock_songs','0','Lock Songs',100,'boolean','system'),(24,'force_http_play','1','Forces Http play regardless of port',100,'boolean','system'),(25,'http_port','80','Non-Standard Http Port',100,'integer','system'),(41,'localplay_controller','0','Localplay Type',100,'special','options'),(29,'play_type','stream','Type of Playback',25,'special','streaming'),(31,'lang','en_US','Language',100,'special','interface'),(32,'playlist_type','m3u','Playlist Type',100,'special','playlist'),(33,'theme_name','classic','Theme',0,'special','interface'),(34,'ellipse_threshold_album','27','Album Ellipse Threshold',0,'integer','interface'),(35,'ellipse_threshold_artist','27','Artist Ellipse Threshold',0,'integer','interface'),(36,'ellipse_threshold_title','27','Title Ellipse Threshold',0,'integer','interface'),(51,'offset_limit','50','Offset Limit',5,'integer','interface'),(40,'localplay_level','0','Localplay Access',100,'special','options'),(44,'allow_stream_playback','1','Allow Streaming',100,'boolean','system'),(45,'allow_democratic_playback','0','Allow Democratic Play',100,'boolean','system'),(46,'allow_localplay_playback','0','Allow Localplay Play',100,'boolean','system'),(47,'stats_threshold','7','Statistics Day Threshold',25,'integer','interface'),(49,'min_object_count','1','Min Element Count',5,'integer','interface'),(52,'rate_limit','8192','Rate Limit',100,'integer','streaming'),(53,'playlist_method','default','Playlist Method',5,'string','playlist'),(55,'transcode','default','Transcoding',25,'string','streaming'),(57,'tags_userlist','','User to track', 0, 'string', 'tags');494 /*!40000 ALTER TABLE `preference` ENABLE KEYS */;495 UNLOCK TABLES;496 497 --498 488 -- Table structure for table `rating` 499 489 -- 500 490 … … 834 824 SET character_set_client = @saved_cs_client; 835 825 836 826 -- 837 -- Dumping data for table `user_preference`838 --839 840 LOCK TABLES `user_preference` WRITE;841 /*!40000 ALTER TABLE `user_preference` DISABLE KEYS */;842 INSERT INTO `user_preference` VALUES (-1,1,'0'),(-1,4,'10'),(-1,19,'32'),(-1,22,'Ampache :: Pour l\'Amour de la Musique'),(-1,23,'0'),(-1,24,'1'),(-1,25,'80'),(-1,41,'0'),(-1,29,'stream'),(-1,31,'en_US'),(-1,32,'m3u'),(-1,33,'classic'),(-1,34,'27'),(-1,35,'27'),(-1,36,'27'),(-1,51,'50'),(-1,40,'0'),(-1,44,'1'),(-1,45,'0'),(-1,46,'0'),(-1,47,'7'),(-1,49,'1'),(-1,52,'8192'),(-1,53,'default'),(-1,55,'default');843 /*!40000 ALTER TABLE `user_preference` ENABLE KEYS */;844 UNLOCK TABLES;845 846 --847 827 -- Table structure for table `user_shout` 848 828 -- 849 829
